Home
last modified time | relevance | path

Searched refs:opInst (Results 1 – 22 of 22) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/
H A DLLVMToLLVMIRTranslation.cpp293 if (isa<LLVM::CallOp>(opInst)) { in convertOperationImpl()
294 llvm::Value *result = convertCall(opInst); in convertOperationImpl()
295 if (opInst.getNumResults() != 0) { in convertOperationImpl()
349 int shift = (opInst.getNumResults() > 0) ? 1 : 0; in convertOperationImpl()
356 if (opInst.getNumResults() != 0) in convertOperationImpl()
361 if (auto invOp = dyn_cast<LLVM::InvokeOp>(opInst)) { in convertOperationImpl()
390 if (auto lpOp = dyn_cast<LLVM::LandingpadOp>(opInst)) { in convertOperationImpl()
409 if (auto brOp = dyn_cast<LLVM::BrOp>(opInst)) { in convertOperationImpl()
412 moduleTranslation.mapBranch(&opInst, branch); in convertOperationImpl()
432 moduleTranslation.mapBranch(&opInst, branch); in convertOperationImpl()
[all …]
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenMP/
H A DOpenMPToLLVMIRTranslation.cpp287 if (auto ifExprVar = opInst.if_expr_var()) in convertOmpParallel()
293 if (auto bind = opInst.proc_bind_val()) in convertOmpParallel()
340 auto criticalOp = cast<omp::CriticalOp>(opInst); in convertOmpCritical()
535 auto orderedOp = cast<omp::OrderedOp>(opInst); in convertOmpOrdered()
602 auto sectionsOp = cast<omp::SectionsOp>(opInst); in convertOmpSections()
708 auto loop = cast<omp::WsLoopOp>(opInst); in convertOmpWsLoop()
905 auto loop = cast<omp::SimdLoopOp>(opInst); in convertOmpSimdLoop()
1006 auto readOp = cast<omp::AtomicReadOp>(opInst); in convertOmpAtomicRead()
1076 return opInst.emitError( in convertOmpAtomicUpdate()
1106 Block &bb = *opInst.region().begin(); in convertOmpAtomicUpdate()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/
H A DAffineAnalysis.cpp205 auto *opInst = state.value.getDefiningOp(); in getReachableAffineApplyOps() local
208 if (!isa_and_nonnull<AffineApplyOp>(opInst)) { in getReachableAffineApplyOps()
215 affineApplyOps.push_back(opInst); in getReachableAffineApplyOps()
217 if (state.operandIndex < opInst->getNumOperands()) { in getReachableAffineApplyOps()
313 Block *currBlock = access.opInst->getBlock(); in getCommonBlock()
324 Block *block = srcAccess.opInst->getBlock(); in getCommonBlock()
457 if (failed(getOpIndexSet(opInst, &domain))) in getAccessRelation()
496 if (auto loadOp = dyn_cast<AffineReadOpInterface>(opInst)) in getAccessMap()
600 LLVM_DEBUG(srcAccess.opInst->dump();); in checkMemrefAccessDependence()
601 LLVM_DEBUG(dstAccess.opInst->dump();); in checkMemrefAccessDependence()
[all …]
H A DUtils.cpp833 bool readReadAccesses = isa<AffineReadOpInterface>(srcAccess.opInst) && in computeSliceUnion()
834 isa<AffineReadOpInterface>(dstAccess.opInst); in computeSliceUnion()
1219 opInst = loadOrStoreOpInst; in MemRefAccess()
1225 opInst = loadOrStoreOpInst; in MemRefAccess()
1236 return isa<AffineWriteOpInterface>(opInst); in isStore()
1293 auto result = block.walk(start, end, [&](Operation *opInst) -> WalkResult { in getMemoryFootprintBytes() argument
1294 if (!isa<AffineReadOpInterface, AffineWriteOpInterface>(opInst)) { in getMemoryFootprintBytes()
1300 auto region = std::make_unique<MemRefRegion>(opInst->getLoc()); in getMemoryFootprintBytes()
1302 region->compute(opInst, in getMemoryFootprintBytes()
1304 return opInst->emitError("error obtaining memory region\n"); in getMemoryFootprintBytes()
[all …]
/llvm-project-15.0.7/mlir/test/lib/Dialect/Affine/
H A DTestVectorizationUtils.cpp123 auto *opInst = m.getMatchedOperation(); in testVectorShapeRatio() local
128 auto superVectorType = opInst->getResult(0).getType().cast<VectorType>(); in testVectorShapeRatio()
131 opInst->emitRemark("NOT MATCHED"); in testVectorShapeRatio()
133 outs << "\nmatched: " << *opInst << " with shape ratio: "; in testVectorShapeRatio()
210 auto *opInst = m.getMatchedOperation(); in testComposeMaps() local
211 auto map = opInst->getAttr(VectorizerTestPass::kTestAffineMapAttrName) in testComposeMaps()
/llvm-project-15.0.7/mlir/test/lib/Analysis/
H A DTestMemRefBoundCheck.cpp44 getOperation()->walk([](Operation *opInst) { in runOnOperation() argument
45 TypeSwitch<Operation *>(opInst) in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Affine/Analysis/
H A DAffineAnalysis.h82 Operation *opInst; member
88 explicit MemRefAccess(Operation *opInst);
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/X86Vector/
H A DX86VectorToLLVMIRTranslation.cpp38 Operation &opInst = *op; in convertOperation() local
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/AMX/
H A DAMXToLLVMIRTranslation.cpp37 Operation &opInst = *op; in convertOperation() local
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/ArmSVE/
H A DArmSVEToLLVMIRTranslation.cpp37 Operation &opInst = *op; in convertOperation() local
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/ArmNeon/
H A DArmNeonToLLVMIRTranslation.cpp38 Operation &opInst = *op; in convertOperation() local
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/
H A DLoopFusion.cpp755 for (auto *opInst : collector.loadOpInsts) { in init() local
756 node.loads.push_back(opInst); in init()
757 auto memref = cast<AffineReadOpInterface>(opInst).getMemRef(); in init()
760 for (auto *opInst : collector.storeOpInsts) { in init() local
761 node.stores.push_back(opInst); in init()
762 auto memref = cast<AffineWriteOpInterface>(opInst).getMemRef(); in init()
826 auto *opInst = node.op; in init() local
827 for (auto value : opInst->getResults()) { in init()
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DModuleTranslation.h122 llvm::MDNode *getAccessGroup(Operation &opInst,
127 llvm::MDNode *getAliasScope(Operation &opInst,
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/
H A DUtils.cpp1370 Operation *opInst, SmallVectorImpl<AffineApplyOp> *sliceOps) { in createAffineComputationSlice() argument
1373 subOperands.reserve(opInst->getNumOperands()); in createAffineComputationSlice()
1374 for (auto operand : opInst->getOperands()) in createAffineComputationSlice()
1391 if (user != opInst) { in createAffineComputationSlice()
1401 OpBuilder builder(opInst); in createAffineComputationSlice()
1412 opInst->getLoc(), singleResMap, composedOpOperands)); in createAffineComputationSlice()
1419 SmallVector<Value, 4> newOperands(opInst->getOperands()); in createAffineComputationSlice()
1432 opInst->setOperand(idx, newOperands[idx]); in createAffineComputationSlice()
H A DLoopUtils.cpp403 LLVM_DEBUG(srcAccess.opInst->dump();); in checkTilingLegalityImpl()
404 LLVM_DEBUG(dstAccess.opInst->dump();); in checkTilingLegalityImpl()
2405 block->walk(begin, end, [&](Operation *opInst) { in affineDataCopyGenerate() argument
2407 if (auto loadOp = dyn_cast<AffineLoadOp>(opInst)) { in affineDataCopyGenerate()
2412 } else if (auto storeOp = dyn_cast<AffineStoreOp>(opInst)) { in affineDataCopyGenerate()
2423 auto region = std::make_unique<MemRefRegion>(opInst->getLoc()); in affineDataCopyGenerate()
2424 if (failed(region->compute(opInst, copyDepth, /*sliceState=*/nullptr, in affineDataCopyGenerate()
2429 if (!getFullMemRefAsRegion(opInst, copyDepth, region.get())) { in affineDataCopyGenerate()
2431 opInst->emitError("non-constant memref sizes not yet supported")); in affineDataCopyGenerate()
2464 if (!getFullMemRefAsRegion(opInst, copyDepth, region.get())) { in affineDataCopyGenerate()
[all …]
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/ROCDL/
H A DROCDLToLLVMIRTranslation.cpp58 Operation &opInst = *op; in convertOperation() local
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Affine/
H A DUtils.h292 void createAffineComputationSlice(Operation *opInst,
/llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/
H A DLLVMOpBase.td275 [{moduleTranslation.convertType(opInst.getOperand($0).getType())}];
277 [{moduleTranslation.convertType(opInst.getResult($0).getType())}];
280 opInst.getResult(0).getType().cast<LLVM::LLVMStructType>()
318 auto operands = moduleTranslation.lookupValues(opInst.getOperands());
390 auto operands = moduleTranslation.lookupValues(opInst.getOperands());
H A DNVVMOps.td688 auto operands = moduleTranslation.lookupValues(opInst.getOperands());
744 auto operands = moduleTranslation.lookupValues(opInst.getOperands());
798 auto operands = moduleTranslation.lookupValues(opInst.getOperands());
837 auto operands = moduleTranslation.lookupValues(opInst.getOperands());
993 auto operands = moduleTranslation.lookupValues(opInst.getOperands());
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/NVVM/
H A DNVVMToLLVMIRTranslation.cpp109 Operation &opInst = *op; in convertOperation() local
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DModuleTranslation.cpp954 ModuleTranslation::getAccessGroup(Operation &opInst, in getAccessGroup() argument
959 opInst.getParentOp(), metadataName); in getAccessGroup()
1035 ModuleTranslation::getAliasScope(Operation &opInst, in getAliasScope() argument
1040 opInst.getParentOp(), metadataName); in getAliasScope()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/
H A DSerializer.cpp1121 LogicalResult Serializer::processOperation(Operation *opInst) { in processOperation() argument
1122 LLVM_DEBUG(llvm::dbgs() << "[op] '" << opInst->getName() << "'\n"); in processOperation()
1126 return TypeSwitch<Operation *, LogicalResult>(opInst) in processOperation()