| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | FrontendAction.cpp | 208 CI, in CreateWrappedASTConsumer() 553 CI.getLangOpts(), FileMgr, CI.getDiagnostics(), in getInputBufferForModule() 624 CI.createSourceManager(CI.getFileManager()); in BeginSourceFile() 721 CI.createSourceManager(CI.getFileManager()); in BeginSourceFile() 774 CI.getLangOpts(), CI.getTargetOpts(), CI.getPreprocessorOpts(), in BeginSourceFile() 795 CI.getDiagnosticClient().BeginSourceFile(CI.getLangOpts(), in BeginSourceFile() 976 if (CI.getLangOpts().Modules || !CI.hasASTContext() || in BeginSourceFile() 991 if (CI.getLangOpts().Modules || !CI.hasASTContext() || in BeginSourceFile() 999 assert((!CI.getLangOpts().Modules || CI.getASTReader()) && in BeginSourceFile() 1020 if (CI.getLangOpts().HLSL && CI.hasASTContext()) { in BeginSourceFile() [all …]
|
| H A D | FrontendActions.cpp | 42 return CI.hasCodeCompletionConsumer() ? &CI.getCodeCompletionConsumer() in GetCodeCompletionConsumer() 51 if (!CI.hasSema()) in EnsureSemaIsCreated() 140 CI.getPreprocessor(), CI.getModuleCache(), OutputFile, Sysroot, Buffer, in CreateASTConsumer() 199 CI.getPreprocessor(), CI.getModuleCache(), OutputFile, Sysroot, Buffer, in CreateASTConsumer() 218 CompilerInstance &CI) { in BeginSourceFileAction() argument 251 CompilerInstance &CI) { in BeginSourceFileAction() argument 252 if (!CI.getLangOpts().ModulesTS && !CI.getLangOpts().CPlusPlusModules) { in BeginSourceFileAction() 269 CompilerInstance &CI) { in PrepareToExecuteAction() argument 310 CompilerInstance &CI) { in BeginSourceFileAction() argument 378 CI.getPreprocessor(), CI.getModuleCache(), &CI.getASTContext(), in ExecuteAction() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 431 *CI, in optimizeStrChr() 987 if (CI->getArgOperand(0) == CI->getArgOperand(1)) in optimizeStrStr() 2147 *CI, B.CreateCall(F, {CI->getArgOperand(0), CI->getArgOperand(1)})); in optimizeFMinFMax() 2517 if (!CI || CI->use_empty()) in classifyArgUse() 2696 return CI->use_empty() ? (Value *)CI : ConstantInt::get(CI->getType(), 0); in optimizePrintFString() 3025 *CI, emitFWrite(CI->getArgOperand(1), in optimizeFPrintFString() 3042 *CI, emitFPutC(CI->getArgOperand(2), CI->getArgOperand(0), B, TLI)); in optimizeFPrintFString() 3050 *CI, emitFPutS(CI->getArgOperand(2), CI->getArgOperand(0), B, TLI)); in optimizeFPrintFString() 3737 *CI, emitMemCCpy(CI->getArgOperand(0), CI->getArgOperand(1), in optimizeMemCCpyChk() 3771 *CI, emitStrCat(CI->getArgOperand(0), CI->getArgOperand(1), B, TLI)); in optimizeStrCatChk() [all …]
|
| H A D | LibCallsShrinkWrap.cpp | 76 void visitCallInst(CallInst &CI) { checkCandidate(CI); } in visitCallInst() argument 82 if (perform(CI)) { in perform() 181 shrinkWrapCI(CI, Cond); in performCallDomainErrorOnly() 219 shrinkWrapCI(CI, Cond); in performCallRangeErrorOnly() 282 shrinkWrapCI(CI, Cond); in performCallErrors() 289 if (CI.isNoBuiltin()) in checkCandidate() 295 if (!CI.use_empty()) in checkCandidate() 305 if (CI.arg_empty()) in checkCandidate() 313 WorkList.push_back(&CI); in checkCandidate() 495 CI->removeFromParent(); in shrinkWrapCI() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyLibCalls.h | 51 Value *optimizeCall(CallInst *CI, IRBuilderBase &B); 151 Value *optimizeCall(CallInst *CI, IRBuilderBase &B); 175 Value *optimizeBCmp(CallInst *CI, IRBuilderBase &B); 189 Value *optimizeCAbs(CallInst *CI, IRBuilderBase &B); 190 Value *optimizePow(CallInst *CI, IRBuilderBase &B); 193 Value *optimizeExp2(CallInst *CI, IRBuilderBase &B); 195 Value *optimizeLog(CallInst *CI, IRBuilderBase &B); 198 Value *optimizeTan(CallInst *CI, IRBuilderBase &B); 204 Value *optimizeFFS(CallInst *CI, IRBuilderBase &B); 205 Value *optimizeFls(CallInst *CI, IRBuilderBase &B); [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | IntrinsicLowering.cpp | 43 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in ReplaceCallWith() 208 ReplaceCallWith(Fname, CI, CI->arg_begin(), CI->arg_end(), in ReplaceFPIntrinsicWithCall() 212 ReplaceCallWith(Dname, CI, CI->arg_begin(), CI->arg_end(), in ReplaceFPIntrinsicWithCall() 218 ReplaceCallWith(LDname, CI, CI->arg_begin(), CI->arg_end(), in ReplaceFPIntrinsicWithCall() 247 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 251 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 255 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 328 CI->replaceAllUsesWith(CI->getOperand(0)); in LowerIntrinsicCall() 441 CI->replaceAllUsesWith(UndefValue::get(CI->getType())); in LowerIntrinsicCall() 456 if (CI->arg_size() != 1 || CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap() [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | half.ll | 8 ; CI-LABEL: load_f16_arg: 9 ; CI: ; %bb.0: 17 ; CI-NEXT: s_endpgm 35 ; CI: ; %bb.0: 43 ; CI-NEXT: s_endpgm 61 ; CI: ; %bb.0: 101 ; CI: ; %bb.0: 129 ; CI: ; %bb.0: 161 ; CI: ; %bb.0: 192 ; CI: ; %bb.0: [all …]
|
| H A D | ds_read2.ll | 14 ; CI: ; %bb.0: 25 ; CI-NEXT: s_endpgm 50 ; CI: ; %bb.0: 61 ; CI-NEXT: s_endpgm 86 ; CI: ; %bb.0: 98 ; CI-NEXT: s_endpgm 124 ; CI: ; %bb.0: 180 ; CI: ; %bb.0: 243 ; CI: ; %bb.0: 303 ; CI: ; %bb.0: [all …]
|
| H A D | ds_write2.ll | 11 ; CI: ; %bb.0: 22 ; CI-NEXT: s_endpgm 46 ; CI: ; %bb.0: 59 ; CI-NEXT: s_endpgm 87 ; CI: ; %bb.0: 133 ; CI: ; %bb.0: 184 ; CI: ; %bb.0: 231 ; CI: ; %bb.0: 270 ; CI: ; %bb.0: 309 ; CI: ; %bb.0: [all …]
|
| H A D | fabs.f16.ll | 12 ; CI: ; %bb.0: 21 ; CI-NEXT: s_endpgm 52 ; CI-LABEL: s_fabs_f16: 53 ; CI: ; %bb.0: 62 ; CI-NEXT: s_endpgm 93 ; CI: ; %bb.0: 133 ; CI: ; %bb.0: 179 ; CI: ; %bb.0: 226 ; CI: ; %bb.0: 274 ; CI: ; %bb.0: [all …]
|
| H A D | ftrunc.f64.ll | 13 ; CI: v_trunc_f64 24 ; CI: v_trunc_f64_e32 45 ; CI: v_trunc_f64_e32 46 ; CI: v_trunc_f64_e32 64 ; CI: v_trunc_f64_e32 65 ; CI: v_trunc_f64_e32 66 ; CI: v_trunc_f64_e32 67 ; CI: v_trunc_f64_e32 75 ; CI: v_trunc_f64_e32 76 ; CI: v_trunc_f64_e32 [all …]
|
| H A D | fceil64.ll | 13 ; CI: v_ceil_f64_e32 40 ; CI: v_ceil_f64_e32 41 ; CI: v_ceil_f64_e32 59 ; CI: v_ceil_f64_e32 60 ; CI: v_ceil_f64_e32 61 ; CI: v_ceil_f64_e32 62 ; CI: v_ceil_f64_e32 70 ; CI: v_ceil_f64_e32 71 ; CI: v_ceil_f64_e32 72 ; CI: v_ceil_f64_e32 [all …]
|
| H A D | ffloor.f64.ll | 14 ; CI: v_floor_f64_e32 29 ; CI: v_floor_f64_e64 45 ; CI: v_floor_f64_e64 62 ; CI: v_floor_f64_e32 63 ; CI: v_floor_f64_e32 71 ; CI: v_floor_f64_e32 72 ; CI: v_floor_f64_e32 73 ; CI: v_floor_f64_e32 82 ; CI: v_floor_f64_e32 83 ; CI: v_floor_f64_e32 [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/ |
| H A D | frem.ll | 6 ; CI-LABEL: frem_f16: 7 ; CI: ; %bb.0: 36 ; CI-NEXT: s_endpgm 69 ; CI: ; %bb.0: 86 ; CI-NEXT: s_endpgm 115 ; CI: ; %bb.0: 160 ; CI-LABEL: frem_f32: 161 ; CI: ; %bb.0: 227 ; CI: ; %bb.0: 271 ; CI: ; %bb.0: [all …]
|
| H A D | legalize-sextload-constant-32bit.mir | 12 ; CI: liveins: $sgpr0 13 ; CI-NEXT: {{ $}} 32 ; CI: liveins: $sgpr0 33 ; CI-NEXT: {{ $}} 52 ; CI: liveins: $sgpr0 53 ; CI-NEXT: {{ $}} 72 ; CI: liveins: $sgpr0 73 ; CI-NEXT: {{ $}} 91 ; CI: liveins: $sgpr0 92 ; CI-NEXT: {{ $}} [all …]
|
| H A D | legalize-zextload-constant-32bit.mir | 13 ; CI: liveins: $sgpr0 14 ; CI-NEXT: {{ $}} 33 ; CI: liveins: $sgpr0 34 ; CI-NEXT: {{ $}} 53 ; CI: liveins: $sgpr0 54 ; CI-NEXT: {{ $}} 73 ; CI: liveins: $sgpr0 74 ; CI-NEXT: {{ $}} 92 ; CI: liveins: $sgpr0 93 ; CI-NEXT: {{ $}} [all …]
|
| H A D | legalize-load-constant-32bit.mir | 10 ; CI-LABEL: name: test_load_constant32bit_s32_align1 11 ; CI: liveins: $vgpr0 12 ; CI-NEXT: {{ $}} 13 ; CI-NEXT: [[COPY:%[0-9]+]]:_(p6) = COPY $vgpr0 14 ; CI-NEXT: [[C:%[0-9]+]]:_(p6) = G_CONSTANT i32 0 17 ; CI-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 1 33 ; CI-NEXT: $vgpr0 = COPY [[OR2]](s32) 46 ; CI: liveins: $vgpr0 47 ; CI-NEXT: {{ $}} 48 ; CI-NEXT: [[COPY:%[0-9]+]]:_(p6) = COPY $vgpr0 [all …]
|
| H A D | llvm.amdgcn.atomic.dec.ll | 21 ; CI: ; %bb.0: 33 ; CI-NEXT: s_endpgm 69 ; CI: ; %bb.0: 81 ; CI-NEXT: s_endpgm 136 ; CI: ; %bb.0: 160 ; CI: ; %bb.0: 194 ; CI: ; %bb.0: 240 ; CI: ; %bb.0: 293 ; CI: ; %bb.0: 326 ; CI: ; %bb.0: [all …]
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | FrontendActions.cpp | 105 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction() 131 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginInvocation() 142 CI.setSourceManager(nullptr); in BeginInvocation() 143 CI.setFileManager(nullptr); in BeginInvocation() 150 CI.getDiagnosticClient().clear(); in BeginInvocation() 151 CI.getDiagnostics().Reset(); in BeginInvocation() 170 CI.getLangOpts(), CI.getDiagnosticOpts().NoRewriteMacros, in CreateASTConsumer() 173 CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer() 204 CompilerInstance &CI; member in RewriteIncludesAction::RewriteImportsListener 211 : CI(CI), Out(Out) {} in RewriteImportsListener() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Compiler.cpp | 51 CI.getDiagnosticOpts().ShowColors = false; in disableUnsupportedOptions() 75 CI.getHeaderSearchOpts().ModuleFormat = in disableUnsupportedOptions() 78 CI.getFrontendOpts().Plugins.clear(); in disableUnsupportedOptions() 80 CI.getFrontendOpts().PluginArgs.clear(); in disableUnsupportedOptions() 82 CI.getFrontendOpts().ActionName.clear(); in disableUnsupportedOptions() 108 if (!CI) in buildCompilerInvocation() 111 CI->getFrontendOpts().DisableFree = false; in buildCompilerInvocation() 115 disableUnsupportedOptions(*CI); in buildCompilerInvocation() 116 return CI; in buildCompilerInvocation() 135 CI->getPreprocessorOpts().addRemappedFile( in prepareCompilerInstance() [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | AutoUpgrade.cpp | 1316 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics() 1580 Value *Mask = CI.getArgOperand(CI.arg_size() - 1); in upgradeMaskedCompare() 1874 CI->getArgOperand(0), CI->getName()); in UpgradeARMIntrinsicCall() 1906 Tys = {CI->getType(), CI->getOperand(0)->getType(), V2I1Ty}; in UpgradeARMIntrinsicCall() 1915 Tys = {CI->getType(), CI->getOperand(0)->getType(), in UpgradeARMIntrinsicCall() 1963 Builder.SetInsertPoint(CI->getParent(), CI->getIterator()); in UpgradeIntrinsicCall() 3924 {CI->getArgOperand(0), CI->getArgOperand(2), CI->getArgOperand(3)}); in UpgradeIntrinsicCall() 3940 {CI->getArgOperand(0), CI->getArgOperand(1), CI->getArgOperand(2), in UpgradeIntrinsicCall() 3954 {CI->getArgOperand(0), CI->getArgOperand(1), CI->getArgOperand(2), in UpgradeIntrinsicCall() 4268 if (!CI || CI->getCalledFunction() != Fn) in UpgradeARCRuntime() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 878 if ((CI.Offset % CI.EltSize != 0) || (Paired.Offset % CI.EltSize != 0)) in offsetsCanBeCombined() 905 uint32_t EltOffset0 = CI.Offset / CI.EltSize; in offsetsCanBeCombined() 908 CI.BaseOff = 0; in offsetsCanBeCombined() 952 CI.BaseOff = BaseOff * CI.EltSize; in offsetsCanBeCombined() 966 CI.BaseOff = BaseOff * CI.EltSize; in offsetsCanBeCombined() 1050 Where = &CI; in checkAndPrepareMerge() 1065 if (CI.InstClass == DS_READ || CI.InstClass == DS_WRITE) in checkAndPrepareMerge() 1099 CI.UseST64 ? read2ST64Opcode(CI.EltSize) : read2Opcode(CI.EltSize); in mergeRead2Pair() 1198 CI.UseST64 ? write2ST64Opcode(CI.EltSize) : write2Opcode(CI.EltSize); in mergeWrite2Pair() 1717 assert(CI.Width >= 1 && CI.Width <= 4); in getSubRegIdxs() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Utils/ |
| H A D | CallPromotionUtilsTest.cpp | 62 auto *CI = dyn_cast<CallInst>(Inst); in TEST() local 63 ASSERT_TRUE(CI); in TEST() 93 ASSERT_TRUE(CI); in TEST() 120 ASSERT_TRUE(CI); in TEST() 155 ASSERT_TRUE(CI); in TEST() 197 ASSERT_TRUE(CI); in TEST() 239 ASSERT_TRUE(CI); in TEST() 298 ASSERT_TRUE(CI); in TEST() 315 CI = dyn_cast<CallInst>(Inst); in TEST() 316 ASSERT_TRUE(CI); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | CanonicalIncludesTests.cpp | 34 CanonicalIncludes CI; in TEST() local 37 CI.addSystemHeadersMapping(Language); in TEST() 44 CanonicalIncludes CI; in TEST() local 47 CI.addSystemHeadersMapping(Language); in TEST() 72 CanonicalIncludes CI; in TEST() local 73 CI.addMapping(Bar, "<baz>"); in TEST() 76 EXPECT_EQ("<baz>", CI.mapHeader(Bar)); in TEST() 78 EXPECT_EQ("", CI.mapHeader(Other)); in TEST() 94 CanonicalIncludes CI; in TEST() local 95 CI.addMapping(File, "<path>"); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | TailRecursionElimination.cpp | 242 if (!CI || CI->isTailCall() || isa<DbgInfoIntrinsic>(&I) || in markTails() 248 CI->isNoTailCall() || CI->hasOperandBundlesOtherThan( in markTails() 374 if ((I->getOperand(0) == CI && I->getOperand(1) == CI) || in canTransformAccumulatorRecursion() 375 (I->getOperand(0) != CI && I->getOperand(1) != CI)) in canTransformAccumulatorRecursion() 465 if (CI && CI->getCalledFunction() == &F) in findTRECandidate() 473 assert((!CI->isTailCall() || !CI->isNoTailCall()) && in findTRECandidate() 488 auto I = CI->arg_begin(), E = CI->arg_end(); in findTRECandidate() 496 return CI; in findTRECandidate() 811 if (!CI) in processBlock() 827 eliminateCall(CI); in processBlock() [all …]
|