Home
last modified time | relevance | path

Searched refs:AC (Results 1 – 25 of 245) sorted by relevance

12345678910

/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp41 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 DValueTrackingTest.cpp1062 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 Dassume-builder.ll100 ; 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 DValueTracking.h59 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 DBasicAliasAnalysis.h50 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 DLazyValueInfo.h33 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 DPHITransAddr.h46 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 DCheckSecuritySyntaxOnly.cpp72 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 DCastToStructChecker.cpp29 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 DIdenticalExprChecker.cpp39 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 DCheckSizeofPointer.cpp27 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 DObjCContainersASTChecker.cpp30 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 DAssumeBundleBuilder.cpp110 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 DMem2Reg.cpp36 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 DPromoteMemoryToRegister.cpp230 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 DAggressiveInstCombineInternal.h55 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 DInstCombiner.h70 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 DLoopRotationUtilsTest.cpp79 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 Dllvm-config.cpp89 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 DSPIRV.cpp59 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 DAnalysisBasedWarnings.cpp265 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 Dp3.cpp34 namespace AC { namespace
40 if (AC::i) in test2()
41 AC::f(); in test2()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dmangle-alias-template.cpp27 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 DLoopFlatten.cpp608 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 DLoopDataPrefetch.cpp64 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()

12345678910