/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | LoopExtractor.cpp | 39 unsigned NumLoops; member 41 explicit LoopExtractorLegacyPass(unsigned NumLoops = ~0) in LoopExtractorLegacyPass() 42 : ModulePass(ID), NumLoops(NumLoops) { in LoopExtractorLegacyPass() 60 unsigned NumLoops, in LoopExtractor() 64 : NumLoops(NumLoops), LookupDomTree(LookupDomTree), in LoopExtractor() 71 unsigned NumLoops; member 128 return LoopExtractor(NumLoops, LookupDomTree, LookupLoopInfo, LookupACT) in runOnModule() 137 if (!NumLoops) in runOnModule() [all...] |
/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | LoopExtractor.h | 24 LoopExtractorPass(unsigned NumLoops = ~0) : NumLoops(NumLoops) {} in NumLoops() function 30 unsigned NumLoops;
|
/llvm-project/bolt/include/bolt/Passes/ |
H A D | StokeInfo.h | 46 unsigned NumLoops; member 64 NumLoops = MaxLoopDepth = 0; in reset() 87 << "," << NumBlocks << "," << IsLoopFree << "," << NumLoops << "," in printData()
|
/llvm-project/polly/lib/Analysis/ |
H A D | ScopDetection.cpp | 385 NumLoopsOverall += countBeneficialLoops(TopRegion, SE, LI, 0).NumLoops; in detect() 1372 int NumLoops = 1; in countBeneficialSubLoops() 1378 NumLoops -= 1; in countBeneficialSubLoops() 1382 NumLoops += Stats.NumLoops; in countBeneficialSubLoops() 1386 return {NumLoops, MaxLoopDepth}; 1411 LoopNum += Stats.NumLoops; in countBeneficialLoops() 1683 int NumLoops) const { in hasSufficientCompute() 1686 if (NumLoops == 0) in hasSufficientCompute() 1693 InstCount = InstCount / NumLoops; in hasSufficientCompute() 1370 int NumLoops = 1; countBeneficialSubLoops() local 1727 int NumLoops = isProfitableRegion() local [all...] |
H A D | ScopInfo.cpp | 2506 int NumTotalLoops = LoopStat.NumLoops; in getStatistics() 2562 assert(Stats.NumLoops == ScopStats.NumAffineLoops + ScopStats.NumBoxedLoops); in updateLoopCountStatistic() 2565 NumLoopsInScop += Stats.NumLoops; in updateLoopCountStatistic() 2567 std::max(MaxNumLoopsInScop.getValue(), (uint64_t)Stats.NumLoops); in updateLoopCountStatistic()
|
/llvm-project/clang/lib/AST/ |
H A D | OpenMPClause.cpp | 343 unsigned NumLoops, in Create() 347 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create() 349 new (Mem) OMPOrderedClause(Num, NumLoops, StartLoc, LParenLoc, EndLoc); in Create() 350 for (unsigned I = 0; I < NumLoops; ++I) { in Create() 358 unsigned NumLoops) { in CreateEmpty() 359 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty() argument 360 auto *Clause = new (Mem) OMPOrderedClause(NumLoops); in CreateEmpty() 361 for (unsigned I = 0; I < NumLoops; ++I) { in CreateEmpty() 987 unsigned NumLoops) { in Create() 988 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumLoops)); in Create() 344 Create(const ASTContext & C,Expr * Num,unsigned NumLoops,SourceLocation StartLoc,SourceLocation LParenLoc,SourceLocation EndLoc) Create() argument 1058 Create(const ASTContext & C,SourceLocation StartLoc,SourceLocation LParenLoc,SourceLocation EndLoc,DependDataTy Data,Expr * DepModifier,ArrayRef<Expr * > VL,unsigned NumLoops) Create() argument 1076 CreateEmpty(const ASTContext & C,unsigned N,unsigned NumLoops) CreateEmpty() argument 1683 Create(const ASTContext & C,SourceLocation StartLoc,SourceLocation LParenLoc,SourceLocation EndLoc,OpenMPDoacrossClauseModifier DepType,SourceLocation DepLoc,SourceLocation ColonLoc,ArrayRef<Expr * > VL,unsigned NumLoops) Create() argument 1699 CreateEmpty(const ASTContext & C,unsigned N,unsigned NumLoops) CreateEmpty() argument [all...] |
H A D | StmtOpenMP.cpp | 126 Stmt *CurStmt, bool TryImperfectlyNestedLoops, unsigned NumLoops, in doForAllLoops() argument 131 for (unsigned Cnt = 0; Cnt < NumLoops; ++Cnt) { in doForAllLoops() 180 Stmt *CurStmt, bool TryImperfectlyNestedLoops, unsigned NumLoops, in doForAllLoopsBodies() argument 183 CurStmt, TryImperfectlyNestedLoops, NumLoops, in doForAllLoopsBodies() 410 unsigned NumLoops, Stmt *AssociatedStmt, in Create() 414 NumLoops); in Create() 422 unsigned NumLoops) { in CreateEmpty() 425 SourceLocation(), SourceLocation(), NumLoops); in CreateEmpty() 469 ArrayRef<OMPClause *> Clauses, unsigned NumLoops, Stmt *AssociatedStmt, in Create() 473 NumLoops); in Create() 412 Create(const ASTContext & C,SourceLocation StartLoc,SourceLocation EndLoc,ArrayRef<OMPClause * > Clauses,unsigned NumLoops,Stmt * AssociatedStmt,Stmt * TransformedStmt,Stmt * PreInits) Create() argument 424 CreateEmpty(const ASTContext & C,unsigned NumClauses,unsigned NumLoops) CreateEmpty() argument [all...] |
/llvm-project/clang/include/clang/AST/ |
H A D | OpenMPClause.h | 1047 unsigned NumLoops; in OMPDefaultClause() 1051 assert(VL.size() == NumLoops && "Expecting one expression per loop"); 1057 explicit OMPPermutationClause(int NumLoops) 1060 NumLoops(NumLoops) {} 1077 /// \param NumLoops Number of arguments in the clause. in classof() 1079 unsigned NumLoops); 1088 unsigned getNumLoops() const { return NumLoops; } 1095 NumLoops); 1100 NumLoops); 1852 OMPOrderedClause(Expr * Num,unsigned NumLoops,SourceLocation StartLoc,SourceLocation LParenLoc,SourceLocation EndLoc) OMPOrderedClause() argument 1858 OMPOrderedClause(unsigned NumLoops) OMPOrderedClause() argument 4947 unsigned NumLoops = 0; global() variable 4958 OMPDependClause(SourceLocation StartLoc,SourceLocation LParenLoc,SourceLocation EndLoc,unsigned N,unsigned NumLoops) OMPDependClause() argument 4968 OMPDependClause(unsigned N,unsigned NumLoops) OMPDependClause() argument 9210 unsigned NumLoops = 0; global() variable 9220 OMPDoacrossClause(SourceLocation StartLoc,SourceLocation LParenLoc,SourceLocation EndLoc,unsigned N,unsigned NumLoops) OMPDoacrossClause() argument 9229 OMPDoacrossClause(unsigned N,unsigned NumLoops) OMPDoacrossClause() argument [all...] |
H A D | StmtOpenMP.h | 895 unsigned NumLoops, 901 unsigned NumLoops, in tryToFindNextInnerLoop() 913 NumLoops, NewCallback, NewTransformCb); 920 unsigned NumLoops, in doForAllLoops() 923 return doForAllLoops(CurStmt, TryImperfectlyNestedLoops, NumLoops, Callback, in doForAllLoops() 928 unsigned NumLoops, in doForAllLoops() 934 NumLoops, NewCallback); in doForAllLoops() 940 Stmt *CurStmt, bool TryImperfectlyNestedLoops, unsigned NumLoops, in doForAllLoops() 943 const Stmt *CurStmt, bool TryImperfectlyNestedLoops, unsigned NumLoops, in doForAllLoops() argument 949 NumLoops, NewCallbac in doForAllLoops() 916 doForAllLoops(const Stmt * CurStmt,bool TryImperfectlyNestedLoops,unsigned NumLoops,llvm::function_ref<bool (unsigned,const Stmt *)> Callback,llvm::function_ref<void (const OMPLoopTransformationDirective *)> OnTransformationCallback) doForAllLoops() argument 935 doForAllLoops(Stmt * CurStmt,bool TryImperfectlyNestedLoops,unsigned NumLoops,llvm::function_ref<bool (unsigned,Stmt *)> Callback) doForAllLoops() argument 958 doForAllLoopsBodies(const Stmt * CurStmt,bool TryImperfectlyNestedLoops,unsigned NumLoops,llvm::function_ref<void (unsigned,const Stmt *,const Stmt *)> Callback) doForAllLoopsBodies() argument 5576 OMPTileDirective(SourceLocation StartLoc,SourceLocation EndLoc,unsigned NumLoops) OMPTileDirective() argument [all...] |
/llvm-project/llvm/lib/Analysis/ |
H A D | MustExecute.cpp | 369 const auto NumLoops = Loops.size(); in printInfoComment() 370 if (NumLoops > 1) in printInfoComment() 371 OS << " ; (mustexec in " << NumLoops << " loops: "; in printInfoComment() 361 const auto NumLoops = Loops.size(); printInfoComment() local
|
H A D | InlineCost.cpp | 1008 int NumLoops = 0; in finalizeAnalysis() 1013 NumLoops++; in finalizeAnalysis() 1015 addCost(NumLoops * InlineConstants::LoopPenalty); in finalizeAnalysis() 992 int NumLoops = 0; finalizeAnalysis() local
|
/llvm-project/bolt/lib/Passes/ |
H A D | StokeInfo.cpp | 115 FuncInfo.NumLoops = BLI.OuterLoops; in checkFunction()
|
/llvm-project/polly/lib/Transform/ |
H A D | ScheduleTreeTransform.cpp | 616 int NumLoops = unsignedFromIslSize(Band.n_member()); in visitBand() local 618 for (auto j : seq<int>(0, NumLoops)) in visitBand() 633 int NumLoops = unsignedFromIslSize(Band.n_member()); in visitBand() local 634 for (int i : seq<int>(0, NumLoops)) { in visitBand()
|
/llvm-project/polly/include/polly/ |
H A D | ScopDetection.h | 196 int NumLoops; member
|
/llvm-project/llvm/lib/Frontend/OpenMP/ |
H A D | OMPIRBuilder.cpp | 4890 size_t NumLoops = Loops.size(); in tileLoops() 4893 if (NumLoops == 1) in tileLoops() 4945 NewIndVars.resize(NumLoops); in tileLoops() 4946 for (int i = NumLoops - 1; i >= 1; --i) { in tileLoops() 4981 for (size_t i = 0; i < NumLoops - 1; ++i) in addBasicBlockMetadata() 4988 for (size_t i = NumLoops - 1; i > 0; --i) in addLoopMetadata() 4999 for (size_t i = 0; i < NumLoops; ++i) in addSimdMetadata() 5019 int NumLoops = Loops.size(); in unrollLoopHeuristic() 5020 assert(NumLoops >= 1 && "At least one loop to tile required"); in unrollLoopHeuristic() 5052 for (int i = 0; i < NumLoops in createIfVersion() 4644 size_t NumLoops = Loops.size(); collapseLoops() local 4773 int NumLoops = Loops.size(); tileLoops() local 5561 createOrderedDepend(const LocationDescription & Loc,InsertPointTy AllocaIP,unsigned NumLoops,ArrayRef<llvm::Value * > StoreValues,const Twine & Name,bool IsDependSource) createOrderedDepend() argument [all...] |
/llvm-project/clang/lib/Parse/ |
H A D | ParseOpenACC.cpp | 981 ExprResult NumLoops = ParseOpenACCClauseParams() local
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaOpenMP.cpp | 9317 unsigned NumLoops = in checkOpenMPIterationSpace() 9319 if (CurrentNestedLoopCount >= NumLoops) { in checkOpenMPIterationSpace() 9664 unsigned NumLoops = std::max(OrderedLoopCount, NestedLoopCount); in checkOpenMPLoop() 9665 SmallVector<LoopIterationSpace, 4> IterSpaces(NumLoops); in checkOpenMPLoop() 9668 SupportsNonPerfectlyNested, NumLoops, in checkOpenMPLoop() 9669 [DKind, &SemaRef, &DSA, NumLoops, NestedLoopCount, in checkOpenMPLoop() 9675 NumLoops, CollapseLoopCountExpr, OrderedLoopCountExpr, in checkOpenMPLoop() 14104 OpenMPDirectiveKind Kind, Stmt *AStmt, int NumLoops, 14109 AStmt->IgnoreContainers(), /*TryImperfectlyNestedLoops=*/false, NumLoops, in collectLoopStmts() 14196 size_t NumLoops in ActOnOpenMPTileDirective() 9309 unsigned NumLoops = checkOpenMPIterationSpace() local 9618 unsigned NumLoops = std::max(OrderedLoopCount, NestedLoopCount); checkOpenMPLoop() local 14018 checkTransformableLoopNest(OpenMPDirectiveKind Kind,Stmt * AStmt,int NumLoops,SmallVectorImpl<OMPLoopBasedDirective::HelperExprs> & LoopHelpers,Stmt * & Body,SmallVectorImpl<SmallVector<Stmt *,0>> & OriginalInits) checkTransformableLoopNest() argument 14106 size_t NumLoops = LoopStmts.size(); collectLoopStmts() local 14130 unsigned NumLoops = SizesClause->getNumSizes(); ActOnOpenMPTileDirective() local 14411 constexpr unsigned NumLoops = 1; ActOnOpenMPUnrollDirective() local [all...] |
/llvm-project/llvm/unittests/Frontend/ |
H A D | OpenMPIRBuilderTest.cpp | 3116 unsigned NumLoops = 2; in TEST_F() 3123 Builder.restoreIP(OMPBuilder.createOrderedDepend(Builder, AllocaIP, NumLoops, in TEST_F() 3134 EXPECT_EQ(ArrType->getNumElements(), NumLoops); in TEST_F() 3139 for (unsigned Iter = 0; Iter < NumLoops; Iter++) { in TEST_F() 3201 unsigned NumLoops = 2; in TEST_F() 3208 Builder.restoreIP(OMPBuilder.createOrderedDepend(Builder, AllocaIP, NumLoops, in TEST_F() 3219 EXPECT_EQ(ArrType->getNumElements(), NumLoops); in TEST_F() 3224 for (unsigned Iter = 0; Iter < NumLoops; Iter++) { in TEST_F() 2957 unsigned NumLoops = 2; TEST_F() local 3042 unsigned NumLoops = 2; TEST_F() local
|
/llvm-project/clang/include/clang/Sema/ |
H A D | SemaOpenMP.h | 1443 /// \param NumLoops How many nested loops the directive is expecting. 1446 /// \param Body [out] The body code nested in \p NumLoops loop. 1453 OpenMPDirectiveKind Kind, Stmt *AStmt, int NumLoops,
|
/llvm-project/llvm/include/llvm/Frontend/OpenMP/ |
H A D | OMPIRBuilder.h | 2592 /// \param NumLoops The number of loops in depend clause. 2599 InsertPointTy AllocaIP, unsigned NumLoops,
|
/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderStmt.cpp | 3562 unsigned NumLoops = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream() 3564 S = OMPTileDirective::CreateEmpty(Context, NumClauses, NumLoops); in ReadStmtFromStream() 3585 unsigned NumLoops = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream() 3587 S = OMPInterchangeDirective::CreateEmpty(Context, NumClauses, NumLoops); in ReadStmtFromStream() 3447 unsigned NumLoops = Record[ASTStmtReader::NumStmtFields]; ReadStmtFromStream() local
|
H A D | ASTReader.cpp | 10983 unsigned NumLoops = Record.readInt(); in VisitOMPFirstprivateClause() 10984 C = OMPPermutationClause::CreateEmpty(Context, NumLoops); in VisitOMPFirstprivateClause() 11155 unsigned NumLoops = Record.readInt(); in VisitOMPLinearClause() 11156 C = OMPDependClause::CreateEmpty(Context, NumVars, NumLoops); in VisitOMPLinearClause() 11302 unsigned NumLoops = Record.readInt(); in VisitOMPMapClause() 11303 C = OMPDoacrossClause::CreateEmpty(Context, NumVars, NumLoops); in VisitOMPMapClause() 10558 unsigned NumLoops = Record.readInt(); readClause() local 10705 unsigned NumLoops = Record.readInt(); readClause() local
|
/llvm-project/clang/lib/CodeGen/ |
H A D | CGStmtOpenMP.cpp | 6032 unsigned NumLoops = C->getNumLoops(); in convertToComplexValue() 6036 for (unsigned I = 0; I < NumLoops; I++) { in emitSimpleAtomicStore() 6047 OMPBuilder.createOrderedDepend(CGF.Builder, AllocaIP, NumLoops, in emitSimpleAtomicLoad() 5889 unsigned NumLoops = C->getNumLoops(); emitRestoreIP() local
|