/external/llvm-project/mlir/lib/Dialect/Affine/Transforms/ |
D | SuperVectorize.cpp | 763 auto *opInst = memoryOp.getOperation(); in vectorizeRootOrTerminal() local 768 if (auto load = dyn_cast<AffineLoadOp>(opInst)) { in vectorizeRootOrTerminal() 769 OpBuilder b(opInst); in vectorizeRootOrTerminal() 775 computeMemoryOpIndices(opInst, load.getAffineMap(), mapOperands, indices); in vectorizeRootOrTerminal() 780 makePermutationMap(opInst, indices, state->strategy->loopToVectorDim); in vectorizeRootOrTerminal() 786 opInst->getLoc(), vectorType, memoryOp.getMemRef(), indices, in vectorizeRootOrTerminal() 788 state->registerReplacement(opInst, transfer.getOperation()); in vectorizeRootOrTerminal() 790 state->registerTerminal(opInst); in vectorizeRootOrTerminal() 814 auto *opInst = ls.getMatchedOperation(); in vectorizeAffineForOp() local 815 auto load = dyn_cast<AffineLoadOp>(opInst); in vectorizeAffineForOp() [all …]
|
/external/llvm-project/mlir/lib/Target/LLVMIR/ |
D | ModuleTranslation.cpp | 385 ModuleTranslation::convertOmpParallel(Operation &opInst, in convertOmpParallel() argument 401 auto ®ion = cast<omp::ParallelOp>(opInst).getRegion(); in convertOmpParallel() 430 if (auto ifExprVar = cast<omp::ParallelOp>(opInst).if_expr_var()) in convertOmpParallel() 433 if (auto numThreadsVar = cast<omp::ParallelOp>(opInst).num_threads_var()) in convertOmpParallel() 436 if (auto bind = cast<omp::ParallelOp>(opInst).proc_bind_val()) in convertOmpParallel() 482 LogicalResult ModuleTranslation::convertOmpMaster(Operation &opInst, in convertOmpMaster() argument 498 auto ®ion = cast<omp::MasterOp>(opInst).getRegion(); in convertOmpMaster() 520 ModuleTranslation::convertOmpOperation(Operation &opInst, in convertOmpOperation() argument 526 return llvm::TypeSwitch<Operation *, LogicalResult>(&opInst) in convertOmpOperation() 556 [&](omp::ParallelOp) { return convertOmpParallel(opInst, builder); }) in convertOmpOperation() [all …]
|
D | LLVMAVX512Intr.cpp | 29 LogicalResult convertOperation(Operation &opInst, in convertOperation() argument 33 return LLVM::ModuleTranslation::convertOperation(opInst, builder); in convertOperation()
|
D | ConvertToNVVMIR.cpp | 55 LogicalResult convertOperation(Operation &opInst, in convertOperation() argument 60 return LLVM::ModuleTranslation::convertOperation(opInst, builder); in convertOperation()
|
D | ConvertToROCDLIR.cpp | 64 LogicalResult convertOperation(Operation &opInst, in convertOperation() argument 69 return LLVM::ModuleTranslation::convertOperation(opInst, builder); in convertOperation()
|
/external/llvm-project/mlir/lib/Analysis/ |
D | AffineAnalysis.cpp | 53 auto *opInst = state.value.getDefiningOp(); in getReachableAffineApplyOps() local 56 if (!isa_and_nonnull<AffineApplyOp>(opInst)) { in getReachableAffineApplyOps() 63 affineApplyOps.push_back(opInst); in getReachableAffineApplyOps() 65 if (state.operandIndex < opInst->getNumOperands()) { in getReachableAffineApplyOps() 68 auto nextOperand = opInst->getOperand(state.operandIndex); in getReachableAffineApplyOps() 613 Block *currBlock = access.opInst->getBlock(); in getCommonBlock() 624 Block *block = srcAccess.opInst->getBlock(); in getCommonBlock() 662 auto *srcInst = commonBlock->findAncestorOpInBlock(*srcAccess.opInst); in srcAppearsBeforeDstInAncestralBlock() 664 auto *dstInst = commonBlock->findAncestorOpInBlock(*dstAccess.opInst); in srcAppearsBeforeDstInAncestralBlock() 760 if (auto loadOp = dyn_cast<AffineReadOpInterface>(opInst)) in getAccessMap() [all …]
|
D | Utils.cpp | 622 bool readReadAccesses = isa<AffineReadOpInterface>(srcAccess.opInst) && in computeSliceUnion() 623 isa<AffineReadOpInterface>(dstAccess.opInst); in computeSliceUnion() 914 opInst = loadOrStoreOpInst; in MemRefAccess() 924 opInst = loadOrStoreOpInst; in MemRefAccess() 939 return isa<AffineWriteOpInterface>(opInst); in isStore() 996 auto result = block.walk(start, end, [&](Operation *opInst) -> WalkResult { in getMemoryFootprintBytes() argument 997 if (!isa<AffineReadOpInterface, AffineWriteOpInterface>(opInst)) { in getMemoryFootprintBytes() 1003 auto region = std::make_unique<MemRefRegion>(opInst->getLoc()); in getMemoryFootprintBytes() 1005 region->compute(opInst, in getMemoryFootprintBytes() 1007 return opInst->emitError("error obtaining memory region\n"); in getMemoryFootprintBytes() [all …]
|
/external/llvm-project/mlir/test/lib/Dialect/Affine/ |
D | TestVectorizationUtils.cpp | 126 auto *opInst = m.getMatchedOperation(); in testVectorShapeRatio() local 131 auto superVectorType = opInst->getResult(0).getType().cast<VectorType>(); in testVectorShapeRatio() 134 opInst->emitRemark("NOT MATCHED"); in testVectorShapeRatio() 136 outs << "\nmatched: " << *opInst << " with shape ratio: "; in testVectorShapeRatio() 213 auto *opInst = m.getMatchedOperation(); in testComposeMaps() local 214 auto map = opInst->getAttr(VectorizerTestPass::kTestAffineMapAttrName) in testComposeMaps()
|
/external/llvm-project/mlir/test/lib/Transforms/ |
D | TestMemRefBoundCheck.cpp | 39 getFunction().walk([](Operation *opInst) { in runOnFunction() argument 40 TypeSwitch<Operation *>(opInst) in runOnFunction()
|
/external/llvm-project/mlir/lib/Transforms/Utils/ |
D | Utils.cpp | 329 Operation *opInst, SmallVectorImpl<AffineApplyOp> *sliceOps) { in createAffineComputationSlice() argument 332 subOperands.reserve(opInst->getNumOperands()); in createAffineComputationSlice() 333 for (auto operand : opInst->getOperands()) in createAffineComputationSlice() 350 if (user != opInst) { in createAffineComputationSlice() 360 OpBuilder builder(opInst); in createAffineComputationSlice() 371 opInst->getLoc(), singleResMap, composedOpOperands)); in createAffineComputationSlice() 378 SmallVector<Value, 4> newOperands(opInst->getOperands()); in createAffineComputationSlice() 391 opInst->setOperand(idx, newOperands[idx]); in createAffineComputationSlice()
|
D | LoopUtils.cpp | 473 LLVM_DEBUG(srcAccess.opInst->dump();); in checkTilingLegalityImpl() 474 LLVM_DEBUG(dstAccess.opInst->dump();); in checkTilingLegalityImpl() 2688 block->walk(begin, end, [&](Operation *opInst) { in affineDataCopyGenerate() argument 2690 if (auto loadOp = dyn_cast<AffineLoadOp>(opInst)) { in affineDataCopyGenerate() 2695 } else if (auto storeOp = dyn_cast<AffineStoreOp>(opInst)) { in affineDataCopyGenerate() 2706 auto region = std::make_unique<MemRefRegion>(opInst->getLoc()); in affineDataCopyGenerate() 2707 if (failed(region->compute(opInst, copyDepth, /*sliceState=*/nullptr, in affineDataCopyGenerate() 2712 if (!getFullMemRefAsRegion(opInst, copyDepth, region.get())) { in affineDataCopyGenerate() 2714 opInst->emitError("non-constant memref sizes not yet supported")); in affineDataCopyGenerate() 2747 if (!getFullMemRefAsRegion(opInst, copyDepth, region.get())) { in affineDataCopyGenerate() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | strength_reduction_pass.cpp | 86 Instruction* opInst = get_def_use_mgr()->GetDef(opId); in ReplaceMultiplyByPowerOf2() local 87 if (opInst->opcode() == SpvOp::SpvOpConstant) { in ReplaceMultiplyByPowerOf2() 89 uint32_t constVal = opInst->GetSingleWordOperand(2); in ReplaceMultiplyByPowerOf2()
|
D | local_access_chain_convert_pass.cpp | 176 Instruction* opInst = get_def_use_mgr()->GetDef(*tid); in IsConstantIndexAccessChain() local 177 if (opInst->opcode() != SpvOpConstant) return false; in IsConstantIndexAccessChain()
|
D | aggressive_dead_code_elim_pass.cpp | 814 Instruction* opInst = in ProcessGlobalValues() local 816 if (IsDead(opInst)) { in ProcessGlobalValues() 841 Instruction* opInst = in ProcessGlobalValues() local 843 if (IsDead(opInst)) { in ProcessGlobalValues()
|
D | scalar_replacement_pass.cpp | 808 const Instruction* opInst = get_def_use_mgr()->GetDef(id); in CheckUses() local 810 context()->get_constant_mgr()->GetConstantFromInst(opInst); in CheckUses()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | strength_reduction_pass.cpp | 86 Instruction* opInst = get_def_use_mgr()->GetDef(opId); in ReplaceMultiplyByPowerOf2() local 87 if (opInst->opcode() == SpvOp::SpvOpConstant) { in ReplaceMultiplyByPowerOf2() 89 uint32_t constVal = opInst->GetSingleWordOperand(2); in ReplaceMultiplyByPowerOf2()
|
D | local_access_chain_convert_pass.cpp | 176 Instruction* opInst = get_def_use_mgr()->GetDef(*tid); in IsConstantIndexAccessChain() local 177 if (opInst->opcode() != SpvOpConstant) return false; in IsConstantIndexAccessChain()
|
D | aggressive_dead_code_elim_pass.cpp | 814 Instruction* opInst = in ProcessGlobalValues() local 816 if (IsDead(opInst)) { in ProcessGlobalValues() 841 Instruction* opInst = in ProcessGlobalValues() local 843 if (IsDead(opInst)) { in ProcessGlobalValues()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | strength_reduction_pass.cpp | 86 Instruction* opInst = get_def_use_mgr()->GetDef(opId); in ReplaceMultiplyByPowerOf2() local 87 if (opInst->opcode() == SpvOp::SpvOpConstant) { in ReplaceMultiplyByPowerOf2() 89 uint32_t constVal = opInst->GetSingleWordOperand(2); in ReplaceMultiplyByPowerOf2()
|
D | local_access_chain_convert_pass.cpp | 176 Instruction* opInst = get_def_use_mgr()->GetDef(*tid); in IsConstantIndexAccessChain() local 177 if (opInst->opcode() != SpvOpConstant) return false; in IsConstantIndexAccessChain()
|
D | aggressive_dead_code_elim_pass.cpp | 814 Instruction* opInst = in ProcessGlobalValues() local 816 if (IsDead(opInst)) { in ProcessGlobalValues() 841 Instruction* opInst = in ProcessGlobalValues() local 843 if (IsDead(opInst)) { in ProcessGlobalValues()
|
/external/llvm-project/mlir/include/mlir/Analysis/ |
D | AffineAnalysis.h | 50 Operation *opInst; member 56 explicit MemRefAccess(Operation *opInst);
|
/external/llvm-project/mlir/include/mlir/Transforms/ |
D | Utils.h | 142 void createAffineComputationSlice(Operation *opInst,
|
/external/llvm-project/mlir/include/mlir/Dialect/LLVMIR/ |
D | LLVMOpBase.td | 226 [{convertType(opInst.getOperand($0).getType().cast<LLVM::LLVMType>())}]; 228 [{convertType(opInst.getResult($0).getType().cast<LLVM::LLVMType>())}]; 230 [{convertType(opInst.getResult(0).getType().cast<LLVM::LLVMStructType>() 266 auto operands = lookupValues(opInst.getOperands()); 331 auto operands = lookupValues(opInst.getOperands());
|
/external/llvm-project/mlir/lib/Transforms/ |
D | LoopFusion.cpp | 652 for (auto *opInst : collector.loadOpInsts) { in init() local 653 node.loads.push_back(opInst); in init() 654 auto memref = cast<AffineReadOpInterface>(opInst).getMemRef(); in init() 657 for (auto *opInst : collector.storeOpInsts) { in init() local 658 node.stores.push_back(opInst); in init() 659 auto memref = cast<AffineWriteOpInterface>(opInst).getMemRef(); in init() 695 auto *opInst = node.op; in init() local 696 for (auto value : opInst->getResults()) { in init()
|