Home
last modified time | relevance | path

Searched refs:getOps (Results 1 – 25 of 71) sorted by relevance

123

/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestFunc.cpp28 for (auto func : module.getOps<FunctionOpInterface>()) { in runOnOperation()
66 for (auto func : module.getOps<FunctionOpInterface>()) { in runOnOperation()
98 for (auto func : module.getOps<FunctionOpInterface>()) { in runOnOperation()
120 for (auto func : module.getOps<FunctionOpInterface>()) { in runOnOperation()
143 for (auto func : module.getOps<FunctionOpInterface>()) { in runOnOperation()
H A DTestRegions.cpp30 llvm::to_vector(module.getOps<func::FuncOp>()); in runOnOperation()
H A DTestSlicing.cpp64 auto funcOps = module.getOps<func::FuncOp>(); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DConvertLaunchFuncToLLVMCalls.cpp108 auto entryPoints = module.getOps<spirv::EntryPointOp>(); in getKernelGlobalVariables()
113 auto globalVariables = module.getOps<spirv::GlobalVariableOp>(); in getKernelGlobalVariables()
129 auto entryPoint = *module.getOps<spirv::EntryPointOp>().begin(); in encodeKernelName()
281 llvm::make_early_inc_range(module.getOps<gpu::GPUModuleOp>())) in runOnOperation()
285 for (auto func : module.getOps<func::FuncOp>()) { in runOnOperation()
312 for (auto spvModule : module.getOps<spirv::ModuleOp>()) in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/
H A DConvertGPULaunchFuncToVulkanLaunchFunc.cpp92 llvm::make_early_inc_range(getOperation().getOps<gpu::GPUModuleOp>())) in runOnOperation()
96 llvm::make_early_inc_range(getOperation().getOps<spirv::ModuleOp>())) in runOnOperation()
135 for (auto spirvModule : module.getOps<spirv::ModuleOp>()) { in createBinaryShader()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DSideEffectUtils.cpp32 for (Operation &op : region.getOps()) in isSideEffectFree()
H A DLoopInvariantCodeMotionUtils.cpp63 for (Operation &op : region->getOps()) in moveLoopInvariantCode()
H A DControlFlowSinkUtils.cpp108 for (Operation &op : region->getOps()) in sinkRegion()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Transform/
H A DTestTransformDialectInterpreter.cpp49 module.getBody()->getOps<transform::TransformOpInterface>()) { in runOnOperation()
/llvm-project-15.0.7/mlir/test/lib/Dialect/SPIRV/
H A DTestModuleCombiner.cpp36 auto modules = llvm::to_vector<4>(getOperation().getOps<spirv::ModuleOp>()); in runOnOperation()
H A DTestEntryPointAbi.cpp55 for (gpu::GPUFuncOp gpuFunc : gpuModule.getOps<gpu::GPUFuncOp>()) { in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Reducer/
H A DReductionTreePass.cpp44 for (const auto &op : enumerate(region.getOps())) { in applyPatterns()
230 for (Operation &op : region.getOps()) in runOnOperation()
/llvm-project-15.0.7/mlir/docs/Tutorials/
H A DUnderstandingTheIRStructure.md157 ### Filtered iterator: `getOps<OpTy>()`
160 `getOps<OpTy>()` that provided a filtered iterator. Here is an example:
163 auto varOps = entryBlock.getOps<spirv::GlobalVariableOp>();
170 Similarly, the `Region` class exposes the same `getOps` method that will iterate
175 The `getOps<OpTy>()` is useful to iterate on some Operations immediately listed
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToGPU/
H A DSCFToGPUPass.cpp38 llvm::make_early_inc_range(getOperation().getBody().getOps())) { in runOnOperation()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAffinePromotion.cpp48 for (fir::DoLoopOp op : funcOp.getOps<fir::DoLoopOp>()) in AffineFunctionAnalysis()
89 for (auto loopOp : loopOperation.getOps<fir::DoLoopOp>()) { in analyzeBody()
96 for (auto ifOp : loopOperation.getOps<fir::IfOp>()) in analyzeBody()
137 for (auto loadOp : loopOperation.getOps<fir::LoadOp>()) in analyzeMemoryAccess()
140 for (auto storeOp : loopOperation.getOps<fir::StoreOp>()) in analyzeMemoryAccess()
/llvm-project-15.0.7/mlir/tools/mlir-spirv-cpu-runner/
H A Dmlir-spirv-cpu-runner.cpp56 auto modules = module.getOps<ModuleOp>(); in convertMLIRModule()
/llvm-project-15.0.7/mlir/lib/Dialect/Transform/Transforms/
H A DCheckUses.cpp113 ArrayRef<Operation *> getOps() const { return deleters; } in getOps() function in __anon03a6bbe50111::TransformOpMemFreeAnalysis::PotentialDeleters
385 for (Operation *d : deleters.getOps()) { in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DRegion.h172 iterator_range<OpIterator> getOps() { return {op_begin(), op_end()}; } in getOps() function
185 iterator_range<op_iterator<OpT>> getOps() { in getOps() function
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DInterchange.cpp93 llvm::make_early_inc_range(genericOp.getBody()->getOps<IndexOp>())) { in interchangeGenericOp()
/llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/
H A DDeadCodeAnalysis.cpp126 for (auto callable : symbolTableBlock->getOps<CallableOpInterface>()) { in initializeSymbolCallables()
195 for (Operation &op : region.getOps()) in initializeRecursively()
/llvm-project-15.0.7/mlir/lib/Rewrite/
H A DFrozenRewritePatternSet.cpp21 if (llvm::empty(pdlModule.getOps<pdl::PatternOp>())) in convertPDLToPDLInterp()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DForToWhile.cpp83 for (auto yieldOp : afterBlock->getOps<scf::YieldOp>()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DDropEquivalentBufferResults.cpp66 for (auto funcOp : module.getOps<func::FuncOp>()) { in dropEquivalentBufferResults()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DDecorateCompositeTypeLayoutPass.cpp137 for (auto spirvModule : module.getOps<spirv::ModuleOp>()) in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/
H A DTranslateRegistration.cpp128 auto spirvModules = srcModule.getOps<spirv::ModuleOp>(); in roundTripModule()

123