Lines Matching defs:opInst

527 convertIgnoredWrapper(omp::LoopWrapperInterface &opInst,
539 return llvm::TypeSwitch<Operation *, LogicalResult>(opInst)
579 convertOmpMasked(Operation &opInst, llvm::IRBuilderBase &builder,
581 auto maskedOp = cast<omp::MaskedOp>(opInst);
584 if (failed(checkImplementationStatus(opInst)))
614 if (failed(handleError(afterIP, opInst)))
623 convertOmpMaster(Operation &opInst, llvm::IRBuilderBase &builder,
626 auto masterOp = cast<omp::MasterOp>(opInst);
628 if (failed(checkImplementationStatus(opInst)))
649 if (failed(handleError(afterIP, opInst)))
658 convertOmpCritical(Operation &opInst, llvm::IRBuilderBase &builder,
661 auto criticalOp = cast<omp::CriticalOp>(opInst);
663 if (failed(checkImplementationStatus(opInst)))
668 auto &region = cast<omp::CriticalOp>(opInst).getRegion();
699 if (failed(handleError(afterIP, opInst)))
884 convertOmpOrdered(Operation &opInst, llvm::IRBuilderBase &builder,
886 auto orderedOp = cast<omp::OrderedOp>(opInst);
888 if (failed(checkImplementationStatus(opInst)))
917 convertOmpOrderedRegion(Operation &opInst, llvm::IRBuilderBase &builder,
920 auto orderedRegionOp = cast<omp::OrderedRegionOp>(opInst);
922 if (failed(checkImplementationStatus(opInst)))
927 auto &region = cast<omp::OrderedRegionOp>(opInst).getRegion();
943 if (failed(handleError(afterIP, opInst)))
1512 convertOmpSections(Operation &opInst, llvm::IRBuilderBase &builder,
1518 auto sectionsOp = cast<omp::SectionsOp>(opInst);
1520 if (failed(checkImplementationStatus(opInst)))
1536 cast<omp::BlockArgOpenMPOpInterface>(opInst).getReductionBlockArgs();
1611 if (failed(handleError(afterIP, opInst)))
1860 convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder,
1862 auto wsloopOp = cast<omp::WsloopOp>(opInst);
1863 if (failed(checkImplementationStatus(opInst)))
1907 if (handleError(afterAllocas, opInst).failed())
1913 cast<omp::BlockArgOpenMPOpInterface>(opInst).getReductionBlockArgs();
2030 if (failed(handleError(wsloopIP, opInst)))
2051 convertOmpParallel(omp::ParallelOp opInst, llvm::IRBuilderBase &builder,
2054 ArrayRef<bool> isByRef = getIsByRef(opInst.getReductionByref());
2055 assert(isByRef.size() == opInst.getNumReductionVars());
2058 if (failed(checkImplementationStatus(*opInst)))
2063 cast<omp::BlockArgOpenMPOpInterface>(*opInst).getPrivateBlockArgs();
2069 collectPrivatizationDecls(opInst, privateDecls);
2070 for (mlir::Value privateVar : opInst.getPrivateVars())
2075 collectReductionDecls(opInst, reductionDecls);
2077 opInst.getNumReductionVars());
2085 if (handleError(afterAllocas, *opInst).failed())
2092 cast<omp::BlockArgOpenMPOpInterface>(*opInst).getReductionBlockArgs();
2099 opInst, reductionArgs, builder, moduleTranslation, allocaIP,
2113 initReductionVars(opInst, reductionArgs, builder, moduleTranslation,
2132 opInst.getRegion(), "omp.par.region", builder, moduleTranslation);
2137 if (opInst.getNumReductionVars() > 0) {
2142 collectReductionInfo(opInst, builder, moduleTranslation, reductionDecls,
2195 if (failed(cleanupPrivateVars(builder, moduleTranslation, opInst.getLoc(),
2204 if (auto ifVar = opInst.getIfExpr())
2207 if (auto numThreadsVar = opInst.getNumThreads())
2210 if (auto bind = opInst.getProcBindKind())
2223 if (failed(handleError(afterIP, *opInst)))
2244 convertOmpSimd(Operation &opInst, llvm::IRBuilderBase &builder,
2246 auto simdOp = cast<omp::SimdOp>(opInst);
2249 if (failed(checkImplementationStatus(opInst)))
2271 if (handleError(afterAllocas, opInst).failed())
2401 convertOmpAtomicRead(Operation &opInst, llvm::IRBuilderBase &builder,
2403 auto readOp = cast<omp::AtomicReadOp>(opInst);
2404 if (failed(checkImplementationStatus(opInst)))
2426 convertOmpAtomicWrite(Operation &opInst, llvm::IRBuilderBase &builder,
2428 auto writeOp = cast<omp::AtomicWriteOp>(opInst);
2429 if (failed(checkImplementationStatus(opInst)))
2463 convertOmpAtomicUpdate(omp::AtomicUpdateOp &opInst,
2467 if (failed(checkImplementationStatus(*opInst)))
2471 auto &innerOpList = opInst.getRegion().front().getOperations();
2482 mlir::Operation &innerOp = *opInst.getRegion().front().begin();
2484 opInst.getRegion().getArgument(0))) {
2485 return opInst.emitError("no atomic update operation with region argument"
2489 isXBinopExpr = innerOp.getOperand(0) == opInst.getRegion().getArgument(0);
2497 llvmX = moduleTranslation.lookupValue(opInst.getX());
2499 opInst.getRegion().getArgument(0).getType());
2505 convertAtomicOrdering(opInst.getMemoryOrder());
2509 [&opInst, &moduleTranslation](
2512 Block &bb = *opInst.getRegion().begin();
2513 moduleTranslation.mapValue(*opInst.getRegion().args_begin(), atomicx);
2533 if (failed(handleError(afterIP, *opInst)))
2638 convertOmpThreadprivate(Operation &opInst, llvm::IRBuilderBase &builder,
2642 auto threadprivateOp = cast<omp::ThreadprivateOp>(opInst);
2644 if (failed(checkImplementationStatus(opInst)))
2654 return opInst.emitError("Addressing symbol not found");
2669 moduleTranslation.mapValue(opInst.getResult(0), callInst);
2671 moduleTranslation.mapValue(opInst.getResult(0), globalValue);
4163 convertOmpTarget(Operation &opInst, llvm::IRBuilderBase &builder,
4165 auto targetOp = cast<omp::TargetOp>(opInst);
4166 if (failed(checkImplementationStatus(opInst)))
4172 auto parentFn = opInst.getParentOfType<LLVM::LLVMFuncOp>();
4173 auto argIface = cast<omp::BlockArgOpenMPOpInterface>(opInst);
4186 DataLayout dl = DataLayout(opInst.getParentOfType<ModuleOp>());
4410 if (failed(handleError(afterIP, opInst)))