| /llvm-project/lld/test/ELF/ |
| H A D | ppc32-long-thunk.s | 15 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefixes=CHECK,PI %s 26 # PI-NEXT: bl 0x2038 43 # PI: <__LongThunk_high>: 44 # PI-NEXT: 2018: mflr 0 45 # PI-NEXT: bcl 20, 31, 0x2020 46 # PI-NEXT: 2020: mflr 12 47 # PI-NEXT: addis 12, 12, 512 48 # PI-NEXT: addi 12, 12, -24 49 # PI-NEXT: mtlr 0 50 # PI-NEXT: mtctr 12 [all …]
|
| /llvm-project/clang-tools-extra/include-cleaner/unittests/ |
| H A D | RecordTest.cpp | 306 PragmaIncludes PI; in PragmaIncludeTest() 319 return std::make_unique<Hook>(&PI); in build() 325 PI = PragmaIncludes(); in createEmptyFiles() 371 EXPECT_FALSE(PI.shouldKeep(*FM.getOptionalFileRef("normal.h"))); in TEST_F() 372 EXPECT_FALSE(PI.shouldKeep(*FM.getOptionalFileRef("std/vector"))); in TEST_F() 375 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep1.h"))); in TEST_F() 376 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep2.h"))); in TEST_F() 377 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep3.h"))); in TEST_F() 378 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep4.h"))); in TEST_F() 379 EXPECT_TRUE(PI in TEST_F() 302 PragmaIncludes PI; global() member in clang::include_cleaner::__anonc7ca0e310111::PragmaIncludeTest [all...] |
| H A D | AnalysisTest.cpp | 57 PragmaIncludes PI; in WalkUsedTest() 70 return std::make_unique<Hook>(&PI); in offsetToProviders() 85 walkUsed(TopLevelDecls, MacroRefs, &PI, AST.preprocessor(), in __anonca074cb60302() 210 PragmaIncludes PI; in AnalyzeTest() 218 Hook(RecordedPP &PP, PragmaIncludes &PI, in AnalyzeTest() member 220 : PP(PP), PI(PI), ExtraFS(std::move(ExtraFS)) {} in AnalyzeTest() 223 PI.record(CI); 239 PragmaIncludes &PI; in TEST_F() 242 return std::make_unique<Hook>(PP, PI, ExtraF in TEST_F() 51 PragmaIncludes PI; global() member in clang::include_cleaner::__anonca074cb60111::WalkUsedTest 204 PragmaIncludes PI; global() member in clang::include_cleaner::__anonca074cb60111::AnalyzeTest [all...] |
| /llvm-project/llvm/include/llvm/ |
| H A D | PassAnalysisSupport.h | 165 Pass *findImplPass(AnalysisID PI) { in findImplPass() argument 168 if (AnalysisImpl.first == PI) { in findImplPass() 177 std::tuple<Pass *, bool> findImplPass(Pass *P, AnalysisID PI, Function &F); 179 void addAnalysisImplsPair(AnalysisID PI, Pass *P) { in addAnalysisImplsPair() argument 180 if (findImplPass(PI) == P) in addAnalysisImplsPair() 182 std::pair<AnalysisID, Pass*> pir = std::make_pair(PI,P); in addAnalysisImplsPair() 214 const void *PI = &AnalysisType::ID; in getAnalysisIfAvailable() local 216 Pass *ResultPass = Resolver->getAnalysisIfAvailable(PI); in getAnalysisIfAvailable() 223 return (AnalysisType*)ResultPass->getAdjustedAnalysisPointer(PI); in getAnalysisIfAvailable() 236 AnalysisType &Pass::getAnalysisID(AnalysisID PI) const { in getAnalysisID() argument [all …]
|
| H A D | PassSupport.h | 40 PassInfo *PI = new PassInfo( \ 43 Registry.registerPass(*PI, true); \ 44 return PI; \ 58 PassInfo *PI = new PassInfo( \ 61 Registry.registerPass(*PI, true); \ 62 return PI; \
|
| /llvm-project/llvm/include/llvm/IR/ |
| H A D | PassManagerImpl.h | 32 const PassInstrumentation &PI; in run() local 37 explicit StackTraceEntry(const PassInstrumentation &PI, IRUnitT &IR) in run() 38 : PI(PI), IR(IR) {} in run() 46 auto PassName = PI.getPassNameForClassName(ClassName); in run() 63 PassInstrumentation PI = in run() local 71 StackTraceEntry Entry(PI, IR); in run() 78 if (!PI.runBeforePass<IRUnitT>(*Pass, IR)) in run() 89 PI.runAfterPass<IRUnitT>(*Pass, IR, PassPA); in run() 121 if (auto *PI = getCachedResult<PassInstrumentationAnalysis>(IR)) in clear() local 122 PI->runAnalysesCleared(Name); in clear() [all …]
|
| /llvm-project/clang-tools-extra/include-cleaner/lib/ |
| H A D | FindHeaders.cpp | 91 Hints isPublicHeader(const FileEntry *FE, const PragmaIncludes &PI) { in isPublicHeader() 92 if (PI.isPrivate(FE) || !PI.isSelfContained(FE)) in isPublicHeader() 99 const SourceManager &SM, const PragmaIncludes *PI) { in hintedHeadersForStdHeaders() 103 if (!PI) in hintedHeadersForStdHeaders() 105 for (FileEntryRef Export : PI->getExporters(H, SM.getFileManager())) in hintedHeadersForStdHeaders() 106 Results.emplace_back(Header(Export), isPublicHeader(Export, *PI)); in hintedHeadersForStdHeaders() 151 const PragmaIncludes *PI) { in headersForSpecialSymbol() 167 return applyHints(hintedHeadersForStdHeaders({*Header}, SM, PI), in headersForSpecialSymbol() 187 const PragmaIncludes *PI) { in findHeaders() 90 isPublicHeader(const FileEntry * FE,const PragmaIncludes & PI) isPublicHeader() argument 98 hintedHeadersForStdHeaders(llvm::ArrayRef<tooling::stdlib::Header> Headers,const SourceManager & SM,const PragmaIncludes * PI) hintedHeadersForStdHeaders() argument 150 headersForSpecialSymbol(const Symbol & S,const SourceManager & SM,const PragmaIncludes * PI) headersForSpecialSymbol() argument 186 findHeaders(const SymbolLocation & Loc,const SourceManager & SM,const PragmaIncludes * PI) findHeaders() argument 243 headersForSymbol(const Symbol & S,const SourceManager & SM,const PragmaIncludes * PI) headersForSymbol() argument [all...] |
| H A D | Analysis.cpp | 54 const PragmaIncludes *PI, const Preprocessor &PP, in walkUsed() argument 67 return CB(SymRef, headersForSymbol(ND, PP, PI)); in walkUsed() 75 CB(MacroRef, headersForSymbol(MacroRef.Target, PP, PI)); in walkUsed() 82 const PragmaIncludes *PI, const Preprocessor &PP, in analyze() argument 93 walkUsed(ASTRoots, MacroRefs, PI, PP, in analyze() 132 if (PI) { in analyze() 133 if (PI->shouldKeep(*I.Resolved)) in analyze() 137 if (auto PHeader = PI->getPublic(*I.Resolved); !PHeader.empty()) { in analyze()
|
| /llvm-project/llvm/lib/CodeGen/ |
| H A D | EarlyIfConversion.cpp | 517 PHIInfo &PI = PHIs.back(); in canConvertIf() local 519 for (unsigned i = 1; i != PI.PHI->getNumOperands(); i += 2) { in canConvertIf() 520 if (PI.PHI->getOperand(i+1).getMBB() == TPred) in canConvertIf() 521 PI.TReg = PI.PHI->getOperand(i).getReg(); in canConvertIf() 522 if (PI.PHI->getOperand(i+1).getMBB() == FPred) in canConvertIf() 523 PI.FReg = PI.PHI->getOperand(i).getReg(); in canConvertIf() 525 assert(Register::isVirtualRegister(PI.TReg) && "Bad PHI"); in canConvertIf() 526 assert(Register::isVirtualRegister(PI in canConvertIf() [all...] |
| H A D | MachinePassManager.cpp | 114 PassInstrumentation PI = FAM.getResult<PassInstrumentationAnalysis>(F); in run() local 123 if (!PI.runBeforePass<MachineFunction>(*Pass, MF)) in run() 127 PI.runAfterPass(*Pass, MF, PassPA); in run() 144 PassInstrumentation PI = MFAM.getResult<PassInstrumentationAnalysis>(MF); in run() local 147 if (!PI.runBeforePass<MachineFunction>(*Pass, MF)) in run() 152 PI.runAfterPass(*Pass, MF, PassPA); in run()
|
| /llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZHazardRecognizer.cpp | 176 PI = SchedModel->getWriteProcResBegin(SC), in dumpSU() local 177 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in dumpSU() 179 *SchedModel->getProcResource(PI->ProcResourceIdx); in dumpSU() 190 if (PI->ReleaseAtCycle> 1) in dumpSU() 191 OS << "(" << PI->ReleaseAtCycle << "cyc)"; in dumpSU() 297 PI = SchedModel->getWriteProcResBegin(SC), in EmitInstruction() local 298 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in EmitInstruction() 300 if (SchedModel->getProcResource(PI->ProcResourceIdx)->BufferSize == 1) in EmitInstruction() 303 ProcResourceCounters[PI->ProcResourceIdx]; in EmitInstruction() 304 CurrCounter += PI->ReleaseAtCycle; in EmitInstruction() [all …]
|
| /llvm-project/llvm/test/Linker/ |
| H A D | partial-type-refinement-link.ll | 9 %PI = type { i8, i8, i8, i8, i8, i8, %"vector<const PI*>", ptr } 10 %"SmallVImpl<const PI*>" = type { i8, ptr } 11 %"_V_base<const PI*>" = type { %"_V_base<const PI*>::_V_impl" } 12 %"_V_base<const PI*>::_V_impl" = type { ptr, i8, i8 } 14 %"vector<const PI*>" = type { %"_V_base<const PI*>" } 18 %x = getelementptr inbounds %"SmallVImpl<const PI*>", ptr %this, i64 0, i32 1
|
| H A D | partial-type-refinement.ll | 11 %PI = type { i8, i8, i8, i8, i8, i8, %"vector<const PI*>", ptr } 12 %"RegisterP<LowerArrayLength>" = type { %PI } 13 %"_V_base<const PI*>" = type { %"_V_base<const PI*>::_V_impl" } 14 %"_V_base<const PI*>::_V_impl" = type { ptr, i8, i8 } 16 %"vector<const PI*>" = type { %"_V_base<const PI*>" }
|
| /llvm-project/clang/test/Rewriter/ |
| H A D | objc-modern-StretAPI.mm | 23 I* PI(); function 28 struct S s = [PI() Meth : 1 : (id)0]; 30 U u = [PI() Meth2 : 3.14]; 32 S s1 = [PI() VAMeth : 12, 13.4, 1000, "hello"]; 34 S s2 = [PI() VAMeth : 12]; 36 S s3 = [PI() VAMeth : 0, "hello", "there"]; 38 S s4 = [PI() VAMeth : 2, ^{}, &foo]; 40 return [PI() Meth1];
|
| /llvm-project/flang/lib/Optimizer/Builder/ |
| H A D | PPCIntrinsicCall.cpp | 24 using PI = PPCIntrinsicLibrary; typedef 30 &PI::genMmaIntr<MMAOp::AssembleAcc, MMAHandlerOp::SubToFunc>), 39 &PI::genMmaIntr<MMAOp::AssemblePair, MMAHandlerOp::SubToFunc>), 44 &PI::genMmaIntr<MMAOp::AssembleAcc, 54 &PI::genMmaIntr<MMAOp::DisassembleAcc, MMAHandlerOp::SubToFunc>), 59 &PI::genMmaIntr<MMAOp::DisassemblePair, MMAHandlerOp::SubToFunc>), 64 &PI::genMmaIntr<MMAOp::Pmxvbf16ger2, MMAHandlerOp::SubToFunc>), 74 &PI::genMmaIntr<MMAOp::Pmxvbf16ger2nn, 85 &PI::genMmaIntr<MMAOp::Pmxvbf16ger2np, 96 &PI [all...] |
| /llvm-project/llvm/lib/IR/ |
| H A D | LegacyPassManager.cpp | 417 /// Return function pass corresponding to PassInfo PI, that is 420 std::tuple<Pass *, bool> getOnTheFlyPass(Pass *MP, AnalysisID PI, 672 const PassInfo *PI = findAnalysisPassInfo(P->getPassID()); in schedulePass() 673 if (PI && PI->isAnalysis() && findAnalysisPass(P->getPassID())) { in schedulePass() 691 const PassInfo *PI = findAnalysisPassInfo(ID); in schedulePass() 693 if (!PI) { in schedulePass() local 712 assert(PI && "Expected required passes to be initialized"); in schedulePass() 713 AnalysisPass = PI->createPass(); in schedulePass() 746 if (PI in schedulePass() 674 const PassInfo *PI = findAnalysisPassInfo(P->getPassID()); schedulePass() local 791 const PassInfo *&PI = AnalysisPassInfos[AID]; findAnalysisPassInfo() local 844 if (const PassInfo *PI = findAnalysisPassInfo(P->getPassID())) { dumpArguments() local 877 AnalysisID PI = P->getPassID(); recordAvailableAnalysis() local 887 for (const PassInfo *PI : PInf->getInterfacesImplemented()) recordAvailableAnalysis() local 1006 AnalysisID PI = P->getPassID(); freePass() local 1013 for (const PassInfo *PI : PInf->getInterfacesImplemented()) { freePass() local 1081 const PassInfo *PI = TPM->findAnalysisPassInfo(ID); add() local 1176 if (const PassInfo *PI = dumpPassArguments() local 1297 getOnTheFlyPass(Pass * P,AnalysisID PI,Function & F) getOnTheFlyPass() argument 1647 getOnTheFlyPass(Pass * MP,AnalysisID PI,Function & F) getOnTheFlyPass() argument [all...] |
| H A D | PassRegistry.cpp | 49 void PassRegistry::registerPass(const PassInfo &PI, bool ShouldFree) { in registerPass() argument 52 PassInfoMap.insert(std::make_pair(PI.getTypeInfo(), &PI)).second; in registerPass() 55 PassInfoStringMap[PI.getPassArgument()] = &PI; in registerPass() 59 Listener->passRegistered(&PI); in registerPass() 62 ToFree.push_back(std::unique_ptr<const PassInfo>(&PI)); in registerPass()
|
| H A D | Pass.cpp | 83 const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(AID); in getPassName() local 84 if (PI) in getPassName() 85 return PI->getPassName(); in getPassName() 201 const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(ID); in createPass() local 202 if (!PI) in createPass() 204 return PI->createPass(); in createPass() 263 const PassInfo *PI = Pass::lookupPassInfo(Arg); 265 if (PI) 266 pushUnique(Preserved, PI->getTypeInfo()); 276 const PassInfo *PI = Pass::lookupPassInfo(Arg); addPreserved() local
|
| /llvm-project/llvm/test/Transforms/InstCombine/ |
| H A D | str-int-3.ll | 23 ; CHECK-NEXT: store i32 1, ptr [[PI:%.*]], align 4 24 ; CHECK-NEXT: [[PIA0B:%.*]] = getelementptr i8, ptr [[PI]], i64 4 26 ; CHECK-NEXT: [[PIA1A:%.*]] = getelementptr i8, ptr [[PI]], i64 8 28 ; CHECK-NEXT: [[PIA1B:%.*]] = getelementptr i8, ptr [[PI]], i64 12 70 ; CHECK-NEXT: store i32 [[IA_0_0_32]], ptr [[PI:%.*]], align 4 72 ; CHECK-NEXT: store i32 [[IA_0_0_33]], ptr [[PI]], align 4 94 ; CHECK-NEXT: store i64 1, ptr [[PI:%.*]], align 4 95 ; CHECK-NEXT: [[PIA0B:%.*]] = getelementptr i8, ptr [[PI]], i64 8 97 ; CHECK-NEXT: [[PIA0C:%.*]] = getelementptr i8, ptr [[PI]], i64 16 99 ; CHECK-NEXT: [[PIA1A:%.*]] = getelementptr i8, ptr [[PI]], i6 [all...] |
| /llvm-project/llvm/unittests/IR/ |
| H A D | TimePassesTest.cpp | 67 PassInstrumentation PI(&PIC); in TEST() local 123 PassInstrumentation PI(&PIC); in TEST() local 140 PI.runBeforePass(Pass1, M); in TEST() 141 PI.runAfterPass(Pass1, M, PreservedAnalyses::all()); in TEST() 142 PI.runBeforePass(Pass2, M); in TEST() 143 PI.runAfterPass(Pass2, M, PreservedAnalyses::all()); in TEST() 161 PI.runBeforePass(Pass2, M); in TEST() 162 PI.runAfterPass(Pass2, M, PreservedAnalyses::all()); in TEST()
|
| /llvm-project/llvm/lib/Support/ |
| H A D | Program.cpp | 25 static bool Execute(ProcessInfo &PI, StringRef Program, 40 ProcessInfo PI; in ExecuteAndWait() local 41 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteAndWait() 46 PI, SecondsToWait == 0 ? std::nullopt : std::optional(SecondsToWait), in ExecuteAndWait() 64 ProcessInfo PI; in ExecuteNoWait() local 67 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteNoWait() 72 return PI; in ExecuteNoWait()
|
| /llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopPassManager.cpp | 76 PassInstrumentation PI = AM.getResult<PassInstrumentationAnalysis>(L, AR); in runWithLoopNestPasses() 93 PassPA = runSinglePass(L, Pass, AM, AR, U, PI); in runWithLoopNestPasses() 112 PassPA = runSinglePass(*LoopNestPtr, Pass, AM, AR, U, PI); in runWithLoopNestPasses() 157 PassInstrumentation PI = AM.getResult<PassInstrumentationAnalysis>(L, AR); in runWithoutLoopNestPasses() 160 runSinglePass(L, Pass, AM, AR, U, PI); in runWithoutLoopNestPasses() 203 PassInstrumentation PI = AM.getResult<PassInstrumentationAnalysis>(F); in run() 208 if (PI.runBeforePass<Function>(LoopCanonicalizationFPM, F)) { in run() 210 PI.runAfterPass<Function>(LoopCanonicalizationFPM, F, PA); in run() 268 PI.pushBeforeNonSkippedPassCallback([&LAR, &LI](StringRef PassID, Any IR) { in run() 299 if (!PI in run() 77 PassInstrumentation PI = AM.getResult<PassInstrumentationAnalysis>(L, AR); runWithLoopNestPasses() local 158 PassInstrumentation PI = AM.getResult<PassInstrumentationAnalysis>(L, AR); runWithoutLoopNestPasses() local 204 PassInstrumentation PI = AM.getResult<PassInstrumentationAnalysis>(F); run() local [all...] |
| /llvm-project/llvm/include/llvm/Analysis/ |
| H A D | PtrUseVisitor.h | 126 PtrInfo PI; 233 PI.reset(); in visitPtr() 248 if (PI.isAborted()) in visitBitCastInst() 251 return PI; in visitAddrSpaceCastInst() 257 PI.setEscaped(&SI); in visitPtrToIntInst() 269 PI.setEscaped(&I); in visitGetElementPtrInst() 298 PI.setEscaped(&II); 310 PI.setEscaped(&CB); 116 PtrInfo PI; global() variable
|
| /llvm-project/libcxx/test/std/thread/futures/futures.task/futures.task.members/ |
| H A D | ctor2.compile.pass.cpp | 33 using PI = std::packaged_task<int(int)>; 41 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, std::allocator<A>, const PI&>); 42 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, std::allocator<A>, const PI&&>); 43 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, std::allocator<A>, volatile PI&>); 44 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, std::allocator<A>, volatile PI&&>); 46 static_assert(std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PI&>::value, ""); 47 static_assert(std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PI&&>::value, ""); 48 static_assert(std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PI&>::value, ""); 49 static_assert(std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PI&&>::value, ""); 31 using PI = std::packaged_task<int(int)>; global() typedef
|
| /llvm-project/libc/src/math/generic/ |
| H A D | atan2f.cpp | 176 // atan2(y, x) will return a number between -PI and PI representing the angle 231 constexpr double PI = 0x1.921fb54442d18p1; 241 {{{-PI_LO, -PI}, {PI_LO / 2, PI_OVER_2}}, 242 {{-PI_LO, -PI}, {PI_LO / 2, PI_OVER_2}}}}; 273 {{0.0, PI}, {0.0, PI}, {0.0, PI}}, 274 {{PI_OVER_2, PI_OVER_2}, {0.0, 0.0}, {0.0, PI}}, 226 constexpr double PI = 0x1.921fb54442d18p1; global() variable
|