| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/ |
| H A D | ParallelLoopFusion.cpp | 28 ploop.getBody()->walk([](ParallelOp) { return WalkResult::interrupt(); }); in hasNestedParallelOp() 57 firstPloop.getBody()->walk([&](memref::StoreOp store) { in haveNoReadsAfterWriteExceptSameIndex() 60 auto walkResult = secondPloop.getBody()->walk([&](memref::LoadOp load) { in haveNoReadsAfterWriteExceptSameIndex() 101 secondToFirstPloopIndices.map(secondPloop.getBody()->getArguments(), in verifyDependencies() 102 firstPloop.getBody()->getArguments()); in verifyDependencies() 121 firstToSecondPloopIndices.map(firstPloop.getBody()->getArguments(), in fuseIfLegal() 122 secondPloop.getBody()->getArguments()); in fuseIfLegal() 127 b.setInsertionPointToStart(secondPloop.getBody()); in fuseIfLegal() 128 for (auto &op : firstPloop.getBody()->without_terminator()) in fuseIfLegal()
|
| H A D | LoopPipelining.cpp | 130 if (llvm::any_of(forOp.getBody()->getTerminator()->getOperands(), in initializeLoopInfo() 146 auto yield = cast<scf::YieldOp>(forOp.getBody()->getTerminator()); in emitPrologue() 213 llvm::enumerate(forOp.getBody()->getTerminator()->getOperands())) { in createKernelLoop() 259 rewriter.setInsertionPoint(newForOp.getBody(), newForOp.getBody()->begin()); in createKernel() 294 if (arg && arg.getOwner() == forOp.getBody()) { in createKernel() 297 Value ret = forOp.getBody()->getTerminator()->getOperand( in createKernel() 342 for (Value retVal : forOp.getBody()->getTerminator()->getOperands()) { in createKernel() 355 newForOp.getBody()->getArguments()[yieldOperands.size() + 1 + in createKernel() 364 llvm::enumerate(forOp.getBody()->getTerminator()->getOperands())) { in createKernel() 409 forOp.getBody()->getTerminator()->getOpOperands()) { in emitEpilogue()
|
| /llvm-project-15.0.7/mlir/lib/Reducer/ |
| H A D | OptReductionPass.cpp | 59 module.getBody()->push_back(moduleVariant); in runOnOperation() 73 module.getBody()->clear(); in runOnOperation() 74 module.getBody()->getOperations().splice( in runOnOperation() 75 module.getBody()->begin(), moduleVariant.getBody()->getOperations()); in runOnOperation()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 36 return isSemicolonRequiredAfter(While->getBody()); in isSemicolonRequiredAfter() 38 return isSemicolonRequiredAfter(For->getBody()); in isSemicolonRequiredAfter() 40 return isSemicolonRequiredAfter(CXXFor->getBody()); in isSemicolonRequiredAfter() 42 return isSemicolonRequiredAfter(ObjCFor->getBody()); in isSemicolonRequiredAfter() 44 return isSemicolonRequiredAfter(Switch->getBody()); in isSemicolonRequiredAfter()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/Utils/ |
| H A D | Utils.cpp | 53 Block *loopBody = loop.getBody(); in replaceLoopWithNewYields() 54 Block *newLoopBody = newLoop.getBody(); in replaceLoopWithNewYields() 354 forOp.getBody()->getTerminator()->erase(); in promoteIfSingleIteration() 661 innermost.getBody()->back().erase(); in coalesceLoops() 662 outermost.getBody()->getOperations().splice( in coalesceLoops() 664 innermost.getBody()->getOperations()); in coalesceLoops() 744 loops.getBody()->back().erase(); in collapseParallelLoops() 745 newPloop.getBody()->getOperations().splice( in collapseParallelLoops() 747 loops.getBody()->getOperations()); in collapseParallelLoops() 846 auto begin = t.getBody()->begin(); in stripmineSink() [all …]
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | AnalysisDeclContext.cpp | 96 Stmt *Body = FD->getBody(); in getBody() 98 Body = CoroBody->getBody(); in getBody() 109 Stmt *Body = MD->getBody(); in getBody() 119 return BD->getBody(); in getBody() 126 Stmt *AnalysisDeclContext::getBody() const { in getBody() function in AnalysisDeclContext 128 return getBody(Tmp); in getBody() 133 getBody(Tmp); in isBodyAutosynthesized() 139 Stmt *Body = getBody(Tmp); in isBodyAutosynthesizedFromModelFile() 281 PM.reset(new ParentMap(getBody())); in getParentMap() 622 Visit(BR->getBlockDecl()->getBody()); in VisitBlockExpr() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 412 Visit(D->getBody()); in VisitFunctionDecl() 424 Visit(D->getBody()); in VisitCapturedDecl() 431 Visit(D->getBody()); in VisitObjCMethodDecl() 438 Visit(D->getBody()); in VisitBlockDecl() 496 Visit(S->getBody()); in VisitWhileStmt() 520 Visit(S->getBody()); in VisitDoStmt() 545 Visit(S->getBody()); in VisitForStmt() 583 Visit(S->getBody()); in VisitCXXForRangeStmt() 610 Visit(S->getBody()); in VisitObjCForCollectionStmt() 626 Visit(S->getBody()); in VisitSwitchStmt() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/ |
| H A D | PipelineDataTransfer.cpp | 67 auto *forBody = forOp.getBody(); in doubleBuffer() 113 /*domOpFilter=*/&*forOp.getBody()->begin()))) { in doubleBuffer() 169 for (auto &op : *forOp.getBody()) { in findMatchingStartFinishInsts() 176 for (auto &op : *forOp.getBody()) { in findMatchingStartFinishInsts() 209 if (!forOp.getBody()->findAncestorOpInBlock(*user)) { in findMatchingStartFinishInsts() 341 for (auto &op : forOp.getBody()->without_terminator()) in runOnAffineForOp() 346 SmallVector<uint64_t, 8> shifts(forOp.getBody()->getOperations().size()); in runOnAffineForOp() 348 for (auto &op : forOp.getBody()->without_terminator()) { in runOnAffineForOp()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Linalg/ |
| H A D | TestLinalgElementwiseFusion.cpp | 108 (void)applyPatternsAndFoldGreedily(funcOp.getBody(), in runOnOperation() 118 if (failed(applyPatternsAndFoldGreedily(funcOp.getBody(), in runOnOperation() 150 (void)applyPatternsAndFoldGreedily(funcOp.getBody(), in runOnOperation() 160 (void)applyPatternsAndFoldGreedily(funcOp.getBody(), std::move(patterns)); in runOnOperation() 174 (void)applyPatternsAndFoldGreedily(funcOp.getBody(), std::move(patterns)); in runOnOperation()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransEmptyStatementsAndDealloc.cpp | 115 if (!S->getBody()) in VisitWhileStmt() 117 return Visit(S->getBody()); in VisitWhileStmt() 125 if (!S->getBody()) in VisitDoStmt() 127 return Visit(S->getBody()); in VisitDoStmt() 135 if (!S->getBody()) in VisitObjCForCollectionStmt() 137 return Visit(S->getBody()); in VisitObjCForCollectionStmt()
|
| /llvm-project-15.0.7/mlir/test/lib/IR/ |
| H A D | TestOperationEquals.cpp | 25 int opCount = module.getBody()->getOperations().size(); in runOnOperation() 37 Operation *first = &module.getBody()->front(); in runOnOperation() 43 if (OperationEquivalence::isEquivalentTo(first, &module.getBody()->back(), in runOnOperation()
|
| H A D | TestRegions.cpp | 37 functions[0].getBody().takeBody(functions[1].getBody()); in runOnOperation()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Linking/ModuleCombiner/ |
| H A D | ModuleCombiner.cpp | 115 combinedModuleBuilder.setInsertionPointToStart(combinedModule.getBody()); in combine() 136 for (auto &op : *combinedModule.getBody()) { in combine() 173 for (auto &op : *moduleClone->getBody()) { in combine() 206 for (auto &op : *moduleClone->getBody()) in combine() 214 for (auto &op : *combinedModule.getBody()) { in combine()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/ |
| H A D | LoopUtils.cpp | 167 forOp.getBody()->back().erase(); in promoteIfSingleIteration() 240 if (forOp.getBody()->begin() == std::prev(forOp.getBody()->end())) in affineForOpBodySkew() 495 auto &ops = src.getBody()->getOperations(); in moveLoopBodyImpl() 522 pointLoop.getBody()->getOperations().splice( in constructTiledLoopNest() 1515 auto *srcBody = input.back().getBody(); in permuteLoops() 1663 auto begin = t.getBody()->begin(); in stripmineSink() 1821 innermost.getBody()->back().erase(); in coalesceLoops() 1822 outermost.getBody()->getOperations().splice( in coalesceLoops() 1824 innermost.getBody()->getOperations()); in coalesceLoops() 2048 OpBuilder topBuilder(f.getBody()); in generateCopy() [all …]
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | LowerToLLVM.cpp | 86 for (Operation &nested : *loop.getBody()) in matchAndRewrite() 91 rewriter.setInsertionPointToEnd(loop.getBody()); in matchAndRewrite() 98 rewriter.setInsertionPointToStart(loop.getBody()); in matchAndRewrite() 132 rewriter.setInsertionPointToStart(module.getBody()); in getOrInsertPrintf() 146 builder.setInsertionPointToStart(module.getBody()); in getOrCreateGlobalString()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | LowerToLLVM.cpp | 86 for (Operation &nested : *loop.getBody()) in matchAndRewrite() 91 rewriter.setInsertionPointToEnd(loop.getBody()); in matchAndRewrite() 98 rewriter.setInsertionPointToStart(loop.getBody()); in matchAndRewrite() 132 rewriter.setInsertionPointToStart(module.getBody()); in getOrInsertPrintf() 146 builder.setInsertionPointToStart(module.getBody()); in getOrCreateGlobalString()
|
| /llvm-project-15.0.7/mlir/unittests/Interfaces/ |
| H A D | ControlFlowInterfacesTest.cpp | 131 Operation *testOp = &module->getBody()->getOperations().front(); in TEST() 152 Operation *testOp = &module->getBody()->getOperations().front(); in TEST() 173 Operation *testOp = &module->getBody()->getOperations().front(); in TEST() 200 Operation *testOp = &module->getBody()->getOperations().front(); in TEST() 226 Operation *testOp = &module->getBody()->getOperations().front(); in TEST() 253 Operation *testOp = &module->getBody()->getOperations().front(); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToGPU/ |
| H A D | SCFToGPU.cpp | 111 Operation *nested = &forOp.getBody()->front(); in checkAffineLoopNestMappableImpl() 123 auto begin = forOp.getBody()->begin(), end = forOp.getBody()->end(); in checkAffineLoopNestMappableImpl() 124 if (forOp.getBody()->empty() || std::next(begin, 2) != end) in checkAffineLoopNestMappableImpl() 209 currentLoop = cast<AffineForOp>(¤tLoop.getBody()->front()); in collectBounds() 246 Operation &terminator = innermostForOp.getBody()->back(); in createLaunch() 249 builder.setInsertionPointToEnd(innermostForOp.getBody()); in createLaunch() 253 innermostForOp.getBody()->getOperations()); in createLaunch() 534 rewriter.setInsertionPointToStart(loopOp.getBody()); in processParallelLoop() 552 Block *body = parallelOp.getBody(); in processParallelLoop()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | CodeInjector.h | 40 virtual Stmt *getBody(const FunctionDecl *D) = 0; 41 virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
|
| H A D | BodyFarm.h | 35 Stmt *getBody(const FunctionDecl *D); 38 Stmt *getBody(const ObjCMethodDecl *D);
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Frontend/ |
| H A D | ModelInjector.h | 38 Stmt *getBody(const FunctionDecl *D) override; 39 Stmt *getBody(const ObjCMethodDecl *D) override;
|
| /llvm-project-15.0.7/mlir/lib/Conversion/OpenACCToLLVM/ |
| H A D | OpenACCToLLVM.cpp | 43 type.getBody().size() == 3 && in isValid() 44 (type.getBody()[kPtrBasePosInDataDescriptor] in isValid() 46 type.getBody()[kPtrBasePosInDataDescriptor] in isValid() 48 type.getBody()[kPtrPosInDataDescriptor].isa<LLVM::LLVMPointerType>() && in isValid() 49 type.getBody()[kSizePosInDataDescriptor].isInteger(64)) in isValid()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | FunctionInterfaces.td | 172 Region &getBody() { return $_op->getRegion(0); } 176 getBody().dropAllReferences(); 177 getBody().getBlocks().clear(); 183 iterator begin() { return getBody().begin(); } 184 iterator end() { return getBody().end(); } 185 reverse_iterator rbegin() { return getBody().rbegin(); } 186 reverse_iterator rend() { return getBody().rend(); } 189 bool empty() { return getBody().empty(); } 198 Block &back() { return getBody().back(); } 201 Block &front() { return getBody().front(); } [all …]
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/ |
| H A D | WmmaOpsToNvvm.cpp | 161 for (unsigned i = 0, e = matrixType.getBody().size(); i < e; ++i) { in matchAndRewrite() 163 loc, matrixType.getBody()[i], adaptor.src(), in matchAndRewrite() 205 for (size_t i = 0, e = structType.getBody().size(); i < e; ++i) { in matchAndRewrite() 207 loc, structType.getBody()[i], operand, rewriter.getI32ArrayAttr(i)); in matchAndRewrite() 259 if (auto vecType = type.getBody()[0].dyn_cast<VectorType>()) { in matchAndRewrite() 271 for (size_t i : llvm::seq(size_t(0), type.getBody().size())) { in matchAndRewrite() 337 for (size_t i = 0, e = destType.getBody().size(); i < e; ++i) { in matchAndRewrite() 343 .getBody()[i]; in matchAndRewrite()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | StmtCXX.h | 169 Stmt *getBody() { return SubExprs[BODY]; } in getBody() function 189 const Stmt *getBody() const { return SubExprs[BODY]; } in getBody() function 376 Stmt *getBody() const { in getBody() function 424 return getBody() ? getBody()->getBeginLoc() in getBeginLoc() 428 return getBody() ? getBody()->getEndLoc() : getPromiseDecl()->getEndLoc(); in getEndLoc()
|