| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXUtilities.cpp | 41 static AnnotationCache AC; in getAnnotationCache() local 42 return AC; in getAnnotationCache() 47 auto &AC = getAnnotationCache(); in clearAnnotationCache() local 49 AC.Cache.erase(Mod); in clearAnnotationCache() 104 if (AC.Cache.find(m) != AC.Cache.end()) in cacheAnnotationFromMD() 118 if (AC.Cache.find(m) == AC.Cache.end()) in findOneNVVMAnnotation() 120 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findOneNVVMAnnotation() 122 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findOneNVVMAnnotation() 133 if (AC.Cache.find(m) == AC.Cache.end()) in findAllNVVMAnnotation() 135 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findAllNVVMAnnotation() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | ValueTrackingTest.cpp | 1062 AssumptionCache AC(*F); in TEST_F() local 1205 AssumptionCache AC(*F); in TEST_F() local 1258 AssumptionCache AC(*F); in TEST_F() local 1279 AssumptionCache AC(*F); in TEST_F() local 1303 AssumptionCache AC(*F); in TEST_F() local 1542 AssumptionCache AC(*F); in TEST_F() local 1561 AssumptionCache AC(*F); in TEST_F() local 1579 AssumptionCache AC(*F); in TEST_F() local 1595 AssumptionCache AC(*F); in TEST_F() local 1650 AssumptionCache AC(*F); in TEST_F() local [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/Util/ |
| H A D | assume-builder.ll | 100 ; WITH-AC-NEXT: ret void 654 ; WITH-AC: A: 659 ; WITH-AC: B: 665 ; WITH-AC: C: 803 ; WITH-AC: 6: 816 ; WITH-AC: 12: 908 ; WITH-AC: Catch: 912 ; WITH-AC: Exit: 1116 ; WITH-AC: 4: 1120 ; WITH-AC: 6: [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | ValueTracking.h | 59 AssumptionCache *AC = nullptr, 92 AssumptionCache *AC = nullptr, 107 AssumptionCache *AC = nullptr, 119 AssumptionCache *AC = nullptr, 133 AssumptionCache *AC = nullptr, 147 AssumptionCache *AC = nullptr, 155 AssumptionCache *AC = nullptr, 163 AssumptionCache *AC = nullptr, 171 AssumptionCache *AC = nullptr, 528 AssumptionCache *AC, [all …]
|
| H A D | BasicAliasAnalysis.h | 50 AssumptionCache ∾ variable 56 const TargetLibraryInfo &TLI, AssumptionCache &AC, 58 : DL(DL), F(F), TLI(TLI), AC(AC), DT(DT), PV(PV) {} in DL() 61 : AAResultBase(Arg), DL(Arg.DL), F(Arg.F), TLI(Arg.TLI), AC(Arg.AC), in BasicAAResult() 65 AC(Arg.AC), DT(Arg.DT), PV(Arg.PV) {} in BasicAAResult() 118 AssumptionCache *AC, DominatorTree *DT); 130 LocationSize V2Size, AssumptionCache *AC,
|
| H A D | LazyValueInfo.h | 33 AssumptionCache *AC = nullptr; variable 44 : AC(AC_), DL(DL_), TLI(TLI_) {} in LazyValueInfo() 46 : AC(Arg.AC), DL(Arg.DL), TLI(Arg.TLI), PImpl(Arg.PImpl) { in LazyValueInfo() 51 AC = Arg.AC;
|
| H A D | PHITransAddr.h | 46 AssumptionCache *AC; variable 52 PHITransAddr(Value *addr, const DataLayout &DL, AssumptionCache *AC) in PHITransAddr() argument 53 : Addr(addr), DL(DL), AC(AC) { in PHITransAddr()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckSecuritySyntaxOnly.cpp | 72 AnalysisDeclContext* AC; member in __anonfcf4309d0111::WalkAST 82 : BR(br), AC(ac), II_setid(), in WalkAST() 378 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcmp, in checkCall_bcmp() 420 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcopy, in checkCall_bcopy() 461 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bzero, in checkCall_bzero() 499 BR.EmitBasicReport(AC->getDecl(), filter.checkName_gets, in checkCall_gets() 539 BR.EmitBasicReport(AC->getDecl(), filter.checkName_getpw, in checkCall_getpw() 580 BR.EmitBasicReport(AC->getDecl(), filter.checkName_mktemp, in checkCall_mktemp() 814 BR.EmitBasicReport(AC->getDecl(), in checkDeprecatedOrUnsafeBufferHandling() 913 BR.EmitBasicReport(AC->getDecl(), filter.checkName_rand, in checkCall_random() [all …]
|
| H A D | CastToStructChecker.cpp | 29 AnalysisDeclContext *AC; member in __anon4356f8a60111::CastToStructVisitor 34 : BR(B), Checker(Checker), AC(A) {} in CastToStructVisitor() 41 ASTContext &Ctx = AC->getASTContext(); in VisitCastExpr() 64 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr() 66 AC->getDecl(), Checker, "Cast from non-struct type to struct type", in VisitCastExpr() 96 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr() 97 BR.EmitBasicReport(AC->getDecl(), Checker, "Widening cast to struct type", in VisitCastExpr()
|
| H A D | IdenticalExprChecker.cpp | 39 AnalysisDeclContext *AC; member in __anonc54616df0111::FindIdenticalExprVisitor 44 : BR(B), Checker(Checker), AC(A) {} in FindIdenticalExprVisitor() 71 BR.EmitBasicReport(AC->getDecl(), Checker, in reportIdenticalExpr() 91 if (isIdenticalStmt(AC->getASTContext(), RHS, B2->getRHS())) { in checkBitwiseOrLogicalOp() 99 if (isIdenticalStmt(AC->getASTContext(), RHS, LHS)) { in checkBitwiseOrLogicalOp() 140 if (isIdenticalStmt(AC->getASTContext(), Cond1, Cond2, false)) { in VisitIfStmt() 170 if (isIdenticalStmt(AC->getASTContext(), Stmt1, Stmt2, true)) { in VisitIfStmt() 173 BR.EmitBasicReport(AC->getDecl(), Checker, in VisitIfStmt() 264 BR.EmitBasicReport(AC->getDecl(), Checker, in checkComparisonOp() 276 if (isIdenticalStmt(AC->getASTContext(), C->getTrueExpr(), in VisitConditionalOperator() [all …]
|
| H A D | CheckSizeofPointer.cpp | 27 AnalysisDeclContext* AC; member in __anon4a10bc6d0111::WalkAST 31 : BR(br), Checker(checker), AC(ac) {} in WalkAST() 65 PathDiagnosticLocation::createBegin(E, BR.getSourceManager(), AC); in VisitUnaryExprOrTypeTraitExpr() 66 BR.EmitBasicReport(AC->getDecl(), Checker, in VisitUnaryExprOrTypeTraitExpr()
|
| H A D | ObjCContainersASTChecker.cpp | 30 AnalysisDeclContext* AC; member in __anonae348b6f0111::WalkAST 74 : BR(br), Checker(checker), AC(ac), ASTC(AC->getASTContext()), in WalkAST() 143 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in VisitCallExpr() 144 BR.EmitBasicReport(AC->getDecl(), Checker, OsName.str(), in VisitCallExpr()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | AssumeBundleBuilder.cpp | 110 AssumptionCache* AC = nullptr; member 115 : M(M), InstBeingModified(I), AC(AC), DT(DT) {} in AssumeBuilderState() 123 RK.WasOn, {RK.AttrKind}, AC, in tryToPreserveWithoutAddingAssume() 301 if (AC) in salvageKnowledge() 302 AC->registerAssumption(Intr); in salvageKnowledge() 335 AssumptionCache ∾ member 345 : F(F), AC(AC), DT(DT), C(C), in AssumeSimplify() 350 for (Value *V : AC.assumptions()) { in buildMapping() 583 AssumptionCache &AC = in runOnFunction() local 615 salvageKnowledge(&I, AC, DT); in run() [all …]
|
| H A D | Mem2Reg.cpp | 36 AssumptionCache &AC) { in promoteMemoryToRegister() argument 54 PromoteMemToReg(Allocas, DT, &AC); in promoteMemoryToRegister() 63 auto &AC = AM.getResult<AssumptionAnalysis>(F); in run() local 64 if (!promoteMemoryToRegister(F, DT, AC)) in run() 89 AssumptionCache &AC = in runOnFunction() local 91 return promoteMemoryToRegister(F, DT, AC); in runOnFunction()
|
| H A D | PromoteMemoryToRegister.cpp | 230 AssumptionCache *AC; member 266 AssumptionCache *AC) in PromoteMem2Reg() 269 AC(AC), SQ(DT.getRoot()->getParent()->getParent()->getDataLayout(), in PromoteMem2Reg() 270 nullptr, &DT, AC) {} in PromoteMem2Reg() 309 AC->registerAssumption(cast<AssumeInst>(CI)); in addAssumeNonNull() 408 !isKnownNonZero(ReplVal, DL, 0, AC, LI, &DT)) in rewriteSingleStoreAlloca() 409 addAssumeNonNull(AC, LI); in rewriteSingleStoreAlloca() 510 addAssumeNonNull(AC, LI); in promoteSingleBlockAlloca() 965 addAssumeNonNull(AC, LI); in RenamePass() 1016 AssumptionCache *AC) { in PromoteMemToReg() argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombineInternal.h | 55 AssumptionCache &AC; variable 82 TruncInstCombine(AssumptionCache &AC, TargetLibraryInfo &TLI, in TruncInstCombine() argument 84 : AC(AC), TLI(TLI), DL(DL), DT(DT) {} in TruncInstCombine() 112 return llvm::computeKnownBits(V, DL, /*Depth=*/0, &AC, in computeKnownBits() 119 V, DL, /*Depth=*/0, &AC, /*CtxI=*/cast<Instruction>(CurrentTruncInst), in ComputeNumSignBits()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 70 AssumptionCache &AC; variable 87 bool MinimizeSize, AAResults *AA, AssumptionCache &AC, in InstCombiner() argument 93 MinimizeSize(MinimizeSize), AA(AA), AC(AC), TLI(TLI), DT(DT), DL(DL), in InstCombiner() 94 SQ(DL, &TLI, &DT, &AC), ORE(ORE), BFI(BFI), PSI(PSI), LI(LI) {} in InstCombiner() 368 AssumptionCache &getAssumptionCache() const { return AC; } in getAssumptionCache() 459 llvm::computeKnownBits(V, Known, DL, Depth, &AC, CxtI, &DT); in computeKnownBits() 464 return llvm::computeKnownBits(V, DL, Depth, &AC, CxtI, &DT); in computeKnownBits() 475 return llvm::MaskedValueIsZero(V, Mask, DL, Depth, &AC, CxtI, &DT); 480 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT); 485 return llvm::ComputeMaxSignificantBits(Op, DL, Depth, &AC, CxtI, &DT); [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Utils/ |
| H A D | LoopRotationUtilsTest.cpp | 79 AssumptionCache AC(*F); in TEST() local 83 ScalarEvolution SE(*F, TLI, AC, DT, LI); in TEST() 89 &AC, &DT, in TEST() 150 AssumptionCache AC(*F); in TEST() local 154 ScalarEvolution SE(*F, TLI, AC, DT, LI); in TEST() 160 &AC, &DT, in TEST()
|
| /llvm-project-15.0.7/llvm/tools/llvm-config/ |
| H A D | llvm-config.cpp | 89 AvailableComponent *AC = ComponentMap.lookup(Name); in VisitComponent() local 90 if (!AC) { in VisitComponent() 98 assert(AC && "Invalid component name!"); in VisitComponent() 101 if (!VisitedComponents.insert(AC).second) { in VisitComponent() 107 if (!AC->IsInstalled && !IncludeNonInstalled) in VisitComponent() 111 for (unsigned i = 0; AC->RequiredLibraries[i]; ++i) { in VisitComponent() 125 if (!AC) { in VisitComponent() 142 if (AC->Library) { in VisitComponent() 151 RequiredLibs.push_back(AC->Library); in VisitComponent() 174 AvailableComponent *AC = &AvailableComponents[i]; in ComputeLibsForComponents() local [all …]
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | SPIRV.cpp | 59 Action::ActionClass AC = JA.getKind(); in SelectTool() local 60 return SPIRVToolChain::getTool(AC); in SelectTool() 63 clang::driver::Tool *SPIRVToolChain::getTool(Action::ActionClass AC) const { in getTool() 64 switch (AC) { in getTool() 71 return ToolChain::getTool(AC); in getTool()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 265 CFG *cfg = AC.getCFG(); in checkRecursiveFunction() 360 CFG *BodyCFG = AC.getCFG(); in checkThrowInNonThrowingFunc() 400 CFG *cfg = AC.getCFG(); in CheckFallThrough() 1265 CFG *Cfg = AC.getCFG(); in DiagnoseSwitchLabelsFallthrough() 2261 AC.getCFGBuildOptions() in IssueWarnings() 2288 if (AC.getCFG()) { in IssueWarnings() 2344 CheckUnreachable(S, AC); in IssueWarnings() 2366 Analyzer.run(AC); in IssueWarnings() 2397 if (AC.getCFG()) { in IssueWarnings() 2400 AC, Reporter, in IssueWarnings() [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/ |
| H A D | p3.cpp | 34 namespace AC { namespace 40 if (AC::i) in test2() 41 AC::f(); in test2()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | mangle-alias-template.cpp | 27 Alloc<int> AC; in z() local 28 h(AC); in z() 31 h<Alloc>(AC); in z()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopFlatten.cpp | 608 AssumptionCache *AC) { in checkOverflow() argument 619 FI.InnerTripCount, FI.OuterTripCount, DL, AC, in checkOverflow() 776 ScalarEvolution *SE, AssumptionCache *AC, in CanWidenIV() argument 838 return CanFlattenLoopPair(FI, DT, LI, SE, AC, TTI); in CanWidenIV() 851 if (!CanFlattenLoopPair(FI, DT, LI, SE, AC, TTI)) in FlattenLoopPair() 855 bool CanFlatten = CanWidenIV(FI, DT, LI, SE, AC, TTI); in FlattenLoopPair() 873 return DoFlattenLoopPair(FI, DT, LI, SE, AC, TTI, U, MSSAU); in FlattenLoopPair() 880 OverflowResult OR = checkOverflow(FI, DT, AC); in FlattenLoopPair() 891 return DoFlattenLoopPair(FI, DT, LI, SE, AC, TTI, U, MSSAU); in FlattenLoopPair() 903 Changed |= FlattenLoopPair(FI, DT, LI, SE, AC, TTI, U, MSSAU); in Flatten() [all …]
|
| H A D | LoopDataPrefetch.cpp | 64 LoopDataPrefetch(AssumptionCache *AC, DominatorTree *DT, LoopInfo *LI, in LoopDataPrefetch() argument 67 : AC(AC), DT(DT), LI(LI), SE(SE), TTI(TTI), ORE(ORE) {} in LoopDataPrefetch() 106 AssumptionCache *AC; member in __anona282ec880111::LoopDataPrefetch 177 AssumptionCache *AC = &AM.getResult<AssumptionAnalysis>(F); in run() local 182 LoopDataPrefetch LDP(AC, DT, LI, SE, TTI, ORE); in run() 202 AssumptionCache *AC = in runOnFunction() local 209 LoopDataPrefetch LDP(AC, DT, LI, SE, TTI, ORE); in runOnFunction() 282 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in runOnLoop()
|