| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | FrontendAction.cpp | 523 CI.getLangOpts(), FileMgr, CI.getDiagnostics(), in getInputBufferForModule() 580 CI.createSourceManager(CI.getFileManager()); in BeginSourceFile() 659 CI.setASTConsumer(CreateWrappedASTConsumer(CI, InputFile)); in BeginSourceFile() 673 CI.createSourceManager(CI.getFileManager()); in BeginSourceFile() 725 CI.getLangOpts(), CI.getTargetOpts(), CI.getPreprocessorOpts(), in BeginSourceFile() 746 CI.getDiagnosticClient().BeginSourceFile(CI.getLangOpts(), in BeginSourceFile() 871 if (CI.getLangOpts().Modules || !CI.hasASTContext() || in BeginSourceFile() 886 if (CI.getLangOpts().Modules || !CI.hasASTContext() || in BeginSourceFile() 894 assert((!CI.getLangOpts().Modules || CI.getModuleManager()) && in BeginSourceFile() 939 if (CI.shouldBuildGlobalModuleIndex() && CI.hasFileManager() && in Execute() [all …]
|
| H A D | FrontendActions.cpp | 36 return CI.hasCodeCompletionConsumer() ? &CI.getCodeCompletionConsumer() in GetCodeCompletionConsumer() 45 if (!CI.hasSema()) in EnsureSemaIsCreated() 141 CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, in CreateOutputFile() 187 CompilerInstance &CI) { in BeginSourceFileAction() argument 188 if (!CI.getLangOpts().Modules) { in BeginSourceFileAction() 215 return CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, in CreateOutputFile() 222 CompilerInstance &CI) { in BeginSourceFileAction() argument 240 CompilerInstance &CI) { in PrepareToExecuteAction() argument 241 if (!CI.getLangOpts().Modules && !CI.getLangOpts().ModulesTS) { in PrepareToExecuteAction() 280 CompilerInstance &CI) { in BeginSourceFileAction() argument [all …]
|
| H A D | ASTMerge.cpp | 22 return AdaptedAction->CreateASTConsumer(CI, InFile); in CreateASTConsumer() 30 AdaptedAction->setCompilerInstance(&CI); in BeginSourceFileAction() 31 return AdaptedAction->BeginSourceFileAction(CI); in BeginSourceFileAction() 35 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local 36 CI.getDiagnostics().getClient()->BeginSourceFile( in ExecuteAction() 41 DiagIDs(CI.getDiagnostics().getDiagnosticIDs()); in ExecuteAction() 43 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction() 52 CI.getFileSystemOpts(), false); in ExecuteAction() 57 ASTImporter Importer(CI.getASTContext(), CI.getFileManager(), in ExecuteAction() 73 CI.getASTConsumer().HandleTopLevelDecl(DGR); in ExecuteAction() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 698 if (CI->getArgOperand(0) == CI->getArgOperand(1)) in optimizeStrStr() 717 return CI; in optimizeStrStr() 1805 if (!CI) in classifyArgUse() 1972 return CI->use_empty() ? (Value *)CI : ConstantInt::get(CI->getType(), 0); in optimizePrintFString() 2146 CI->getArgOperand(0), 1, CI->getArgOperand(2), 1, in optimizeSnPrintFString() 2297 if (isLocallyOpenedFile(CI->getArgOperand(3), CI, B, TLI)) in optimizeFWrite() 2338 if (isLocallyOpenedFile(CI->getArgOperand(1), CI, B, TLI)) in optimizeFPutc() 2346 if (isLocallyOpenedFile(CI->getArgOperand(0), CI, B, TLI)) in optimizeFGetc() 2353 if (isLocallyOpenedFile(CI->getArgOperand(2), CI, B, TLI)) in optimizeFGets() 2361 if (isLocallyOpenedFile(CI->getArgOperand(3), CI, B, TLI)) in optimizeFRead() [all …]
|
| H A D | LibCallsShrinkWrap.cpp | 78 void visitCallInst(CallInst &CI) { checkCandidate(CI); } in visitCallInst() argument 84 if (perform(CI)) { in perform() 93 bool perform(CallInst *CI); 183 shrinkWrapCI(CI, Cond); in performCallDomainErrorOnly() 221 shrinkWrapCI(CI, Cond); in performCallRangeErrorOnly() 284 shrinkWrapCI(CI, Cond); in performCallErrors() 291 if (CI.isNoBuiltin()) in checkCandidate() 297 if (!CI.use_empty()) in checkCandidate() 315 WorkList.push_back(&CI); in checkCandidate() 497 CI->removeFromParent(); in shrinkWrapCI() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyLibCalls.h | 52 Value *optimizeCall(CallInst *CI); 116 Value *optimizeCall(CallInst *CI); 146 Value *optimizeCAbs(CallInst *CI, IRBuilder<> &B); 147 Value *optimizePow(CallInst *CI, IRBuilder<> &B); 150 Value *optimizeExp2(CallInst *CI, IRBuilder<> &B); 152 Value *optimizeLog(CallInst *CI, IRBuilder<> &B); 153 Value *optimizeSqrt(CallInst *CI, IRBuilder<> &B); 155 Value *optimizeTan(CallInst *CI, IRBuilder<> &B); 161 Value *optimizeFFS(CallInst *CI, IRBuilder<> &B); 162 Value *optimizeFls(CallInst *CI, IRBuilder<> &B); [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 313 if (CI.Offset0 == CI.Offset1) in offsetsCanBeCombined() 317 if ((CI.Offset0 % CI.EltSize != 0) || (CI.Offset1 % CI.EltSize != 0)) in offsetsCanBeCombined() 329 CI.GLC0 == CI.GLC1 && in offsetsCanBeCombined() 330 (CI.InstClass == S_BUFFER_LOAD_IMM || CI.SLC0 == CI.SLC1); in offsetsCanBeCombined() 352 CI.BaseOff = std::min(CI.Offset0, CI.Offset1); in offsetsCanBeCombined() 355 CI.Offset0 = (EltOffset0 - CI.BaseOff / CI.EltSize) / 64; in offsetsCanBeCombined() 356 CI.Offset1 = (EltOffset1 - CI.BaseOff / CI.EltSize) / 64; in offsetsCanBeCombined() 362 CI.Offset0 = EltOffset0 - CI.BaseOff / CI.EltSize; in offsetsCanBeCombined() 363 CI.Offset1 = EltOffset1 - CI.BaseOff / CI.EltSize; in offsetsCanBeCombined() 961 if (CI.Offset0 > CI.Offset1) { in getSubRegIdxs() [all …]
|
| H A D | AMDGPULibCalls.cpp | 146 CallInst *CI; member in llvm::AMDGPULibCalls 152 CI->eraseFromParent(); in replaceCall() 543 CI = aCI; in useNative() 630 CI->eraseFromParent(); in fold_read_write_pipe() 637 this->CI = CI; in fold() 662 if (TDOFold(CI, FInfo)) in fold() 668 if (isUnsafeMath(CI) && evaluateCall(CI, FInfo)) in fold() 703 return isUnsafeMath(CI) && fold_sqrt(CI, B, FInfo); in fold() 949 if (!isUnsafeMath(CI)) in fold_pow() 1728 if (!CI) continue; in runOnFunction() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | IntrinsicLowering.cpp | 78 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in ReplaceCallWith() 317 CallSite CS(CI); in ReplaceFPIntrinsicWithCall() 389 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 393 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 397 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 429 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0)); in LowerIntrinsicCall() 464 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1)); in LowerIntrinsicCall() 470 CI->replaceAllUsesWith(CI->getOperand(0)); in LowerIntrinsicCall() 578 CI->replaceAllUsesWith(UndefValue::get(CI->getType())); in LowerIntrinsicCall() 594 CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap() [all …]
|
| H A D | ScalarizeMaskedMemIntrin.cpp | 139 Instruction *InsertPt = CI; in scalarizeMaskedLoad() 149 CI->eraseFromParent(); in scalarizeMaskedLoad() 175 CI->eraseFromParent(); in scalarizeMaskedLoad() 224 CI->eraseFromParent(); in scalarizeMaskedLoad() 273 CI->eraseFromParent(); in scalarizeMaskedStore() 294 CI->eraseFromParent(); in scalarizeMaskedStore() 331 CI->eraseFromParent(); in scalarizeMaskedStore() 396 CI->eraseFromParent(); in scalarizeMaskedGather() 443 CI->eraseFromParent(); in scalarizeMaskedGather() 504 CI->eraseFromParent(); in scalarizeMaskedScatter() [all …]
|
| H A D | PreISelIntrinsicLowering.cpp | 41 if (!CI || CI->getCalledValue() != &F) in lowerLoadRelative() 44 IRBuilder<> B(CI); in lowerLoadRelative() 46 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative() 52 CI->replaceAllUsesWith(ResultPtr); in lowerLoadRelative() 53 CI->eraseFromParent(); in lowerLoadRelative() 84 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in lowerObjCCall() 85 SmallVector<Value *, 8> Args(CI->arg_begin(), CI->arg_end()); in lowerObjCCall() 87 NewCI->setName(CI->getName()); in lowerObjCCall() 89 if (!CI->use_empty()) in lowerObjCCall() 90 CI->replaceAllUsesWith(NewCI); in lowerObjCCall() [all …]
|
| H A D | ExpandMemCmp.cpp | 54 CallInst *const CI; member in __anon24fd12780111::MemCmpExpansion 197 CallInst *const CI, uint64_t Size, in MemCmpExpansion() argument 201 : CI(CI), in MemCmpExpansion() 208 Builder(CI) { in MemCmpExpansion() 326 Builder.SetInsertPoint(CI); in getCompareLoadPairs() 565 Value *Source1 = CI->getArgOperand(0); in getMemCmpOneBlock() 566 Value *Source2 = CI->getArgOperand(1); in getMemCmpOneBlock() 725 if (CI->getFunction()->optForMinSize()) in expandMemCmp() 766 CI->replaceAllUsesWith(Res); in expandMemCmp() 767 CI->eraseFromParent(); in expandMemCmp() [all …]
|
| H A D | GCRootLowering.cpp | 135 if (CallInst *CI = dyn_cast<CallInst>(I)) in CouldBecomeSafePoint() local 200 if (!CI) in DoLowering() 209 CI->getArgOperand(2), CI); in DoLowering() 210 CI->replaceAllUsesWith(St); in DoLowering() 211 CI->eraseFromParent(); in DoLowering() 217 Value *Ld = new LoadInst(CI->getArgOperand(1), "", CI); in DoLowering() 218 Ld->takeName(CI); in DoLowering() 219 CI->replaceAllUsesWith(Ld); in DoLowering() 220 CI->eraseFromParent(); in DoLowering() 268 MachineBasicBlock::iterator RAI = CI; in VisitCallPoint() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/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() 138 CI.setSourceManager(nullptr); in BeginInvocation() 139 CI.setFileManager(nullptr); in BeginInvocation() 146 CI.getDiagnosticClient().clear(); in BeginInvocation() 147 CI.getDiagnostics().Reset(); in BeginInvocation() 165 InFile, std::move(OS), CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer() 200 CompilerInstance &CI; member in RewriteIncludesAction::RewriteImportsListener 207 : CI(CI), Out(Out) {} in RewriteImportsListener() 292 CI.createModuleManager(); in BeginSourceFileAction() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | AutoUpgrade.cpp | 995 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics() 1234 Value *Mask = CI.getArgOperand(CI.getNumArgOperands() - 1); in upgradeMaskedCompare() 1499 Builder.SetInsertPoint(CI->getParent(), CI->getIterator()); in UpgradeIntrinsicCall() 2891 Value *Ops[] = { CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 2916 Value *Ops[] = { CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 3042 Value *Ops[] = { CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 3198 Value *Args[] = { CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 3228 Value *Args[] = { CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 3396 {CI->getArgOperand(0), CI->getArgOperand(2), CI->getArgOperand(3)}); in UpgradeIntrinsicCall() 3519 Value *Args[4] = {CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | TailRecursionElimination.cpp | 241 if (!CI || CI->isTailCall() || isa<DbgInfoIntrinsic>(&I)) in markTails() 244 bool IsNoTail = CI->isNoTailCall() || CI->hasOperandBundles(); in markTails() 270 CI->setTailCall(); in markTails() 315 CI->setTailCall(); in markTails() 429 if ((I->getOperand(0) == CI && I->getOperand(1) == CI) || in canTransformAccumulatorRecursion() 430 (I->getOperand(0) != CI && I->getOperand(1) != CI)) in canTransformAccumulatorRecursion() 460 CallInst *CI = nullptr; in findTRECandidate() local 464 if (CI && CI->getCalledFunction() == F) in findTRECandidate() 497 return CI; in findTRECandidate() 521 BasicBlock::iterator BBI(CI); in eliminateRecursiveTailCall() [all …]
|
| H A D | LowerExpectIntrinsic.cpp | 59 if (!CI) in handleSwitchExpect() 62 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect() 66 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect() 184 if (!CI) in handlePhiDef() 244 CallInst *CI; in handleBrSelExpect() local 263 if (!CI) in handleBrSelExpect() 282 MDBuilder MDB(CI->getContext()); in handleBrSelExpect() 326 if (!CI) { in lowerExpectIntrinsic() 339 handlePhiDef(CI); in lowerExpectIntrinsic() 341 CI->replaceAllUsesWith(Exp); in lowerExpectIntrinsic() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 36 if (!DT.dominates(CI, User)) in findCallsAtConstantOffset() 41 } else if (auto CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset() local 42 DevirtCalls.push_back({Offset, CI}); in findCallsAtConstantOffset() 54 int64_t Offset, const CallInst *CI, DominatorTree &DT) { in findLoadCallsAtConstantOffset() argument 68 CI, DT); in findLoadCallsAtConstantOffset() 76 SmallVectorImpl<CallInst *> &Assumes, const CallInst *CI, in findDevirtualizableCallsForTypeTest() argument 83 for (const Use &CIU : CI->uses()) { in findDevirtualizableCallsForTypeTest() 95 M, DevirtCalls, CI->getArgOperand(0)->stripPointerCasts(), 0, CI, DT); in findDevirtualizableCallsForTypeTest() 102 const CallInst *CI, DominatorTree &DT) { in findDevirtualizableCallsForTypeCheckedLoad() argument 103 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Frontend/ |
| H A D | FrontendActions.h | 29 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 102 static bool ComputeASTConsumerArguments(CompilerInstance &CI, 108 CreateOutputFile(CompilerInstance &CI, StringRef InFile, 111 bool BeginSourceFileAction(CompilerInstance &CI) override; 116 CreateOutputFile(CompilerInstance &CI, StringRef InFile) = 0; 131 bool BeginSourceFileAction(CompilerInstance &CI) override; 139 bool BeginSourceFileAction(CompilerInstance &CI) override; 151 bool PrepareToExecuteAction(CompilerInstance &CI) override; 152 bool BeginSourceFileAction(CompilerInstance &CI) override; 174 bool BeginInvocation(CompilerInstance &CI) override; [all …]
|
| H A D | FrontendAction.h | 55 virtual bool PrepareToExecuteAction(CompilerInstance &CI) { return true; } in PrepareToExecuteAction() argument 79 virtual bool BeginInvocation(CompilerInstance &CI) { return true; } in BeginInvocation() argument 85 virtual bool BeginSourceFileAction(CompilerInstance &CI) { in BeginSourceFileAction() argument 207 bool PrepareToExecute(CompilerInstance &CI) { in PrepareToExecute() argument 208 return PrepareToExecuteAction(CI); in PrepareToExecute() 260 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 269 virtual bool ParseArgs(const CompilerInstance &CI, 291 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 308 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 310 bool BeginInvocation(CompilerInstance &CI) override; [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/ |
| H A D | ARCMTActions.cpp | 17 bool CheckAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 18 if (arcmt::checkForManualIssues(CI.getInvocation(), getCurrentInput(), in BeginInvocation() 19 CI.getPCHContainerOperations(), in BeginInvocation() 20 CI.getDiagnostics().getClient())) in BeginInvocation() 24 CI.getDiagnostics().setIgnoreAllWarnings(true); in BeginInvocation() 31 bool ModifyAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 33 CI.getPCHContainerOperations(), in BeginInvocation() 34 CI.getDiagnostics().getClient()); in BeginInvocation() 40 bool MigrateAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 42 CI.getInvocation(), getCurrentInput(), CI.getPCHContainerOperations(), in BeginInvocation() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 34 Offset = CI->getZExtValue(); in decomposeSimpleLinearExpr() 262 Value *Src = CI.getOperand(0); in commonCastTransforms() 269 auto *Ty = CI.getType(); in commonCastTransforms() 704 << CI << '\n'); in visitTrunc() 722 return &CI; in visitTrunc() 1092 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitZExt() 1364 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitSExt() 1791 return &CI; in commonPointerCastTransforms() 1803 Type *Ty = CI.getType(); in visitPtrToInt() 1976 if (!CI) return false; in collectInsertionElements() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Frontend/ |
| H A D | ModelInjector.cpp | 28 ModelInjector::ModelInjector(CompilerInstance &CI) : CI(CI) {} in ModelInjector() argument 47 SourceManager &SM = CI.getSourceManager(); in onBodySynthesis() 50 AnalyzerOptionsRef analyzerOpts = CI.getAnalyzerOpts(); in onBodySynthesis() 66 auto Invocation = std::make_shared<CompilerInvocation>(CI.getInvocation()); in onBodySynthesis() 78 CompilerInstance Instance(CI.getPCHContainerOperations()); in onBodySynthesis() 81 new ForwardingDiagnosticConsumer(CI.getDiagnosticClient()), in onBodySynthesis() 86 Instance.setVirtualFileSystem(&CI.getVirtualFileSystem()); in onBodySynthesis() 90 Instance.setFileManager(&CI.getFileManager()); in onBodySynthesis() 92 Instance.setPreprocessor(CI.getPreprocessorPtr()); in onBodySynthesis() 93 Instance.setASTContext(&CI.getASTContext()); in onBodySynthesis()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 358 CI ? CI->getPredicate() : static_cast<CmpInst::Predicate>( in translateCompare() 370 FCmp->copyIRFlags(*CI); in translateCompare() 897 Pow->copyIRFlags(CI); in translateKnownIntrinsic() 904 Exp->copyIRFlags(CI); in translateKnownIntrinsic() 911 Exp2->copyIRFlags(CI); in translateKnownIntrinsic() 918 Log->copyIRFlags(CI); in translateKnownIntrinsic() 925 Log2->copyIRFlags(CI); in translateKnownIntrinsic() 932 Log10->copyIRFlags(CI); in translateKnownIntrinsic() 939 Fabs->copyIRFlags(CI); in translateKnownIntrinsic() 958 FMA->copyIRFlags(CI); in translateKnownIntrinsic() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Lex/ |
| H A D | PreprocessorLexer.h | 96 PPConditionalInfo CI; in pushConditionalLevel() local 97 CI.IfLoc = DirectiveStart; in pushConditionalLevel() 98 CI.WasSkipping = WasSkipping; in pushConditionalLevel() 99 CI.FoundNonSkip = FoundNonSkip; in pushConditionalLevel() 100 CI.FoundElse = FoundElse; in pushConditionalLevel() 101 ConditionalStack.push_back(CI); in pushConditionalLevel() 103 void pushConditionalLevel(const PPConditionalInfo &CI) { in pushConditionalLevel() argument 104 ConditionalStack.push_back(CI); in pushConditionalLevel() 110 bool popConditionalLevel(PPConditionalInfo &CI) { in popConditionalLevel() argument 113 CI = ConditionalStack.pop_back_val(); in popConditionalLevel()
|