qat.experimental.dialect.pulse.analysis.locate_kernels module
Contains analysis to locate all KernelOp operations and their call sites in a
module.
- class KernelCallSites(symbol_name, operation, call_sites)
Bases:
objectStores a
KernelOpoperation found in a module, and each of its call sites.- Variables:
symbol_name – The name of the Kernel.
operation – The Kernel operation.
call_sites – A sequence of operations that invoke the Kernel.
-
call_sites:
tuple[CallKernelOp,...]
-
symbol_name:
str
- locate_kernels(op)
Walks
opand returns aKernelCallSitesfor everyKernelOpfound, pairing each kernel with allCallKernelOpinstances that reference it.- Parameters:
op¶ (
Operation) – The root operation to walk.- Return type:
tuple[KernelCallSites,...]- Returns:
One
KernelCallSitesperKernelOp, in walk order.