Home
last modified time | relevance | path

Searched refs:CI (Results 1 – 25 of 482) sorted by relevance

12345678910>>...20

/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DFrontendAction.cpp201 CI, in CreateWrappedASTConsumer()
536 CI.getLangOpts(), FileMgr, CI.getDiagnostics(), in getInputBufferForModule()
594 CI.createSourceManager(CI.getFileManager()); in BeginSourceFile()
675 CI.setASTConsumer(CreateWrappedASTConsumer(CI, InputFile)); in BeginSourceFile()
689 CI.createSourceManager(CI.getFileManager()); in BeginSourceFile()
741 CI.getLangOpts(), CI.getTargetOpts(), CI.getPreprocessorOpts(), in BeginSourceFile()
762 CI.getDiagnosticClient().BeginSourceFile(CI.getLangOpts(), in BeginSourceFile()
887 if (CI.getLangOpts().Modules || !CI.hasASTContext() || in BeginSourceFile()
902 if (CI.getLangOpts().Modules || !CI.hasASTContext() || in BeginSourceFile()
910 assert((!CI.getLangOpts().Modules || CI.getASTReader()) && in BeginSourceFile()
[all …]
H A DFrontendActions.cpp38 return CI.hasCodeCompletionConsumer() ? &CI.getCodeCompletionConsumer() in GetCodeCompletionConsumer()
47 if (!CI.hasSema()) in EnsureSemaIsCreated()
136 CI.getPreprocessor(), CI.getModuleCache(), OutputFile, Sysroot, Buffer, in CreateASTConsumer()
195 CI.getPreprocessor(), CI.getModuleCache(), OutputFile, Sysroot, Buffer, in CreateASTConsumer()
214 CompilerInstance &CI) { in BeginSourceFileAction() argument
247 CompilerInstance &CI) { in BeginSourceFileAction() argument
248 if (!CI.getLangOpts().ModulesTS && !CI.getLangOpts().CPlusPlusModules) { in BeginSourceFileAction()
265 CompilerInstance &CI) { in PrepareToExecuteAction() argument
306 CompilerInstance &CI) { in BeginSourceFileAction() argument
360 CI.getPreprocessor(), CI.getModuleCache(), &CI.getASTContext(), in ExecuteAction()
[all …]
H A DASTMerge.cpp21 return AdaptedAction->CreateASTConsumer(CI, InFile); in CreateASTConsumer()
29 AdaptedAction->setCompilerInstance(&CI); in BeginSourceFileAction()
30 return AdaptedAction->BeginSourceFileAction(CI); in BeginSourceFileAction()
34 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
35 CI.getDiagnostics().getClient()->BeginSourceFile( in ExecuteAction()
40 DiagIDs(CI.getDiagnostics().getDiagnosticIDs()); in ExecuteAction()
42 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction()
51 CI.getFileSystemOpts(), false); in ExecuteAction()
56 ASTImporter Importer(CI.getASTContext(), CI.getFileManager(), in ExecuteAction()
72 CI.getASTConsumer().HandleTopLevelDecl(DGR); in ExecuteAction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp497 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1); in optimizeStrCpy()
522 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1); in optimizeStpCpy()
803 if (CI->getArgOperand(0) == CI->getArgOperand(1)) in optimizeStrStr()
804 return B.CreateBitCast(CI->getArgOperand(0), CI->getType()); in optimizeStrStr()
807 if (isOnlyUsedInEqualityComparison(CI, CI->getArgOperand(0))) { in optimizeStrStr()
822 return CI; in optimizeStrStr()
832 return B.CreateBitCast(CI->getArgOperand(0), CI->getType()); in optimizeStrStr()
1032 Value *LHS = CI->getArgOperand(0), *RHS = CI->getArgOperand(1); in optimizeMemCmpBCmpCommon()
2204 if (!CI || CI->use_empty()) in classifyArgUse()
2371 return CI->use_empty() ? (Value *)CI : ConstantInt::get(CI->getType(), 0); in optimizePrintFString()
[all …]
H A DLibCallsShrinkWrap.cpp78 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 …]
H A DInjectTLIMappings.cpp45 Module *M = CI.getModule(); in addVariantDeclaration()
48 Type *RetTy = ToVectorTy(CI.getType(), VF); in addVariantDeclaration()
50 for (Value *ArgOperand : CI.arg_operands()) in addVariantDeclaration()
52 assert(!CI.getFunctionType()->isVarArg() && in addVariantDeclaration()
78 if (CI.isNoBuiltin() || !CI.getCalledFunction()) in addMappingsFromTLI()
88 VFABI::getVectorVariantNames(CI, Mappings); in addMappingsFromTLI()
89 Module *M = CI.getModule(); in addMappingsFromTLI()
105 addVariantDeclaration(CI, VF, TLIName); in addMappingsFromTLI()
121 VFABI::setVectorVariantNames(&CI, Mappings); in addMappingsFromTLI()
126 if (auto CI = dyn_cast<CallInst>(&I)) in runImpl() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyLibCalls.h51 Value *optimizeCall(CallInst *CI, IRBuilderBase &B);
153 Value *optimizeCall(CallInst *CI, IRBuilderBase &B);
176 Value *optimizeBCmp(CallInst *CI, IRBuilderBase &B);
190 Value *optimizeCAbs(CallInst *CI, IRBuilderBase &B);
191 Value *optimizePow(CallInst *CI, IRBuilderBase &B);
194 Value *optimizeExp2(CallInst *CI, IRBuilderBase &B);
196 Value *optimizeLog(CallInst *CI, IRBuilderBase &B);
199 Value *optimizeTan(CallInst *CI, IRBuilderBase &B);
205 Value *optimizeFFS(CallInst *CI, IRBuilderBase &B);
206 Value *optimizeFls(CallInst *CI, IRBuilderBase &B);
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp43 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()
457 CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap()
[all …]
H A DReplaceWithVeclib.cpp43 Module *M = CI.getModule(); in replaceWithTLIFunction()
45 Function *OldFunc = CI.getCalledFunction(); in replaceWithTLIFunction()
72 IRBuilder<> IRBuilder(&CI); in replaceWithTLIFunction()
76 CI.getOperandBundlesAsDefs(OpBundles); in replaceWithTLIFunction()
80 CI.replaceAllUsesWith(Replacement); in replaceWithTLIFunction()
83 Replacement->copyFastMathFlags(&CI); in replaceWithTLIFunction()
95 if (!CI.getCalledFunction()) { in replaceWithCallToVeclib()
181 if (auto *CI = dyn_cast<CallInst>(&I)) { in runImpl() local
183 ReplacedCalls.push_back(CI); in runImpl()
190 for (auto *CI : ReplacedCalls) { in runImpl() local
[all …]
H A DPreISelIntrinsicLowering.cpp42 if (!CI || CI->getCalledOperand() != &F) in lowerLoadRelative()
45 IRBuilder<> B(CI); in lowerLoadRelative()
47 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative()
53 CI->replaceAllUsesWith(ResultPtr); in lowerLoadRelative()
54 CI->eraseFromParent(); in lowerLoadRelative()
94 auto *CI = cast<CallInst>(I->getUser()); in lowerObjCCall() local
98 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in lowerObjCCall()
101 NewCI->setName(CI->getName()); in lowerObjCCall()
113 if (!CI->use_empty()) in lowerObjCCall()
114 CI->replaceAllUsesWith(NewCI); in lowerObjCCall()
[all …]
H A DGCRootLowering.cpp134 if (CallInst *CI = dyn_cast<CallInst>(I)) in CouldBecomeSafePoint() local
198 if (!CI) in DoLowering()
207 CI->getArgOperand(2), CI); in DoLowering()
208 CI->replaceAllUsesWith(St); in DoLowering()
209 CI->eraseFromParent(); in DoLowering()
215 Value *Ld = new LoadInst(CI->getType(), CI->getArgOperand(1), "", CI); in DoLowering()
216 Ld->takeName(CI); in DoLowering()
217 CI->replaceAllUsesWith(Ld); in DoLowering()
218 CI->eraseFromParent(); in DoLowering()
265 MachineBasicBlock::iterator RAI = CI; in VisitCallPoint()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DFrontendActions.cpp105 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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp1253 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics()
1517 Value *Mask = CI.getArgOperand(CI.getNumArgOperands() - 1); in upgradeMaskedCompare()
1811 Builder.SetInsertPoint(CI->getParent(), CI->getIterator()); in UpgradeIntrinsicCall()
3227 Value *Ops[] = { CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall()
3252 Value *Ops[] = { CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall()
3758 {CI->getArgOperand(0), CI->getArgOperand(2), CI->getArgOperand(3)}); in UpgradeIntrinsicCall()
3771 {CI->getArgOperand(0), CI->getArgOperand(1), CI->getArgOperand(2), in UpgradeIntrinsicCall()
3785 {CI->getArgOperand(0), CI->getArgOperand(1), CI->getArgOperand(2), in UpgradeIntrinsicCall()
3930 Value *Args[4] = {CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall()
4098 if (!CI || CI->getCalledFunction() != Fn) in UpgradeARCRuntime()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSILoadStoreOptimizer.cpp754 if ((CI.Offset % CI.EltSize != 0) || (Paired.Offset % CI.EltSize != 0)) in offsetsCanBeCombined()
781 uint32_t EltOffset0 = CI.Offset / CI.EltSize; in offsetsCanBeCombined()
784 CI.BaseOff = 0; in offsetsCanBeCombined()
787 if ((CI.InstClass != DS_READ) && (CI.InstClass != DS_WRITE)) { in offsetsCanBeCombined()
829 CI.BaseOff = BaseOff * CI.EltSize; in offsetsCanBeCombined()
843 CI.BaseOff = BaseOff * CI.EltSize; in offsetsCanBeCombined()
1062 CI.UseST64 ? read2ST64Opcode(CI.EltSize) : read2Opcode(CI.EltSize); in mergeRead2Pair()
1086 if (CI.BaseOff) { in mergeRead2Pair()
1163 CI.UseST64 ? write2ST64Opcode(CI.EltSize) : write2Opcode(CI.EltSize); in mergeWrite2Pair()
1180 if (CI.BaseOff) { in mergeWrite2Pair()
[all …]
H A DAMDGPULibCalls.cpp132 CallInst *CI; member in llvm::AMDGPULibCalls
138 CI->eraseFromParent(); in replaceCall()
528 CI = aCI; in useNative()
615 CI->eraseFromParent(); in fold_read_write_pipe()
622 this->CI = CI; in fold()
660 if (isUnsafeMath(CI) && evaluateCall(CI, FInfo)) in fold()
695 return isUnsafeMath(CI) && fold_sqrt(CI, B, FInfo); in fold()
942 if (!isUnsafeMath(CI)) in fold_pow()
1723 if (!CI || isa<DbgInfoIntrinsic>(CI) || CI->isLifetimeStartOrEnd()) in runOnFunction()
1756 if (!CI || isa<DbgInfoIntrinsic>(CI) || CI->isLifetimeStartOrEnd()) in run()
[all …]
H A DSIInsertHardClauses.cpp125 std::distance(CI.First->getIterator(), CI.Last->getIterator()) + 1; in emitClause()
130 auto &MBB = *CI.First->getParent(); in emitClause()
152 ClauseInfo CI; in runOnMachineFunction() local
169 if (CI.Length == 64 || in runOnMachineFunction()
171 (Type != CI.Type || in runOnMachineFunction()
180 CI = ClauseInfo(); in runOnMachineFunction()
183 if (CI.Length) { in runOnMachineFunction()
185 ++CI.Length; in runOnMachineFunction()
187 CI.Last = &MI; in runOnMachineFunction()
197 if (CI.Length) in runOnMachineFunction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp247 if (!CI || CI->isTailCall() || isa<DbgInfoIntrinsic>(&I) || in markTails()
253 CI->isNoTailCall() || CI->hasOperandBundlesOtherThan( in markTails()
379 if ((I->getOperand(0) == CI && I->getOperand(1) == CI) || in canTransformAccumulatorRecursion()
380 (I->getOperand(0) != CI && I->getOperand(1) != CI)) in canTransformAccumulatorRecursion()
470 if (CI && CI->getCalledFunction() == &F) in findTRECandidate()
478 assert((!CI->isTailCall() || !CI->isNoTailCall()) && in findTRECandidate()
493 auto I = CI->arg_begin(), E = CI->arg_end(); in findTRECandidate()
501 return CI; in findTRECandidate()
816 if (!CI) in processBlock()
832 eliminateCall(CI); in processBlock()
[all …]
H A DScalarizeMaskedMemIntrin.cpp168 CI->eraseFromParent(); in scalarizeMaskedLoad()
193 CI->eraseFromParent(); in scalarizeMaskedLoad()
256 CI->eraseFromParent(); in scalarizeMaskedLoad()
307 CI->eraseFromParent(); in scalarizeMaskedStore()
328 CI->eraseFromParent(); in scalarizeMaskedStore()
381 CI->eraseFromParent(); in scalarizeMaskedStore()
449 CI->eraseFromParent(); in scalarizeMaskedGather()
514 CI->eraseFromParent(); in scalarizeMaskedGather()
630 CI->eraseFromParent(); in scalarizeMaskedScatter()
757 CI->eraseFromParent(); in scalarizeMaskedExpandLoad()
[all …]
H A DLowerExpectIntrinsic.cpp65 assert(CI->getNumOperands() >= 3 && in getBranchWeight()
80 if (!CI) in handleSwitchExpect()
83 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
209 if (!CI) in handlePhiDef()
272 CallInst *CI; in handleBrSelExpect() local
291 if (!CI) in handleBrSelExpect()
311 MDBuilder MDB(CI->getContext()); in handleBrSelExpect()
363 if (!CI) { in lowerExpectIntrinsic()
377 handlePhiDef(CI); in lowerExpectIntrinsic()
379 CI->replaceAllUsesWith(Exp); in lowerExpectIntrinsic()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DAnalyzerHelpFlags.cpp28 void ento::printCheckerHelp(raw_ostream &out, CompilerInstance &CI) { in printCheckerHelp() argument
33 *CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printCheckerHelp()
34 CI.getFrontendOpts().Plugins); in printCheckerHelp()
37 *CI.getAnalyzerOpts(), out); in printCheckerHelp()
40 void ento::printEnabledCheckerList(raw_ostream &out, CompilerInstance &CI) { in printEnabledCheckerList() argument
44 *CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printEnabledCheckerList()
45 CI.getFrontendOpts().Plugins); in printEnabledCheckerList()
50 void ento::printCheckerConfigList(raw_ostream &out, CompilerInstance &CI) { in printCheckerConfigList() argument
53 *CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printCheckerConfigList()
54 CI.getFrontendOpts().Plugins); in printCheckerConfigList()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DARCMTActions.cpp16 bool CheckAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument
17 if (arcmt::checkForManualIssues(CI.getInvocation(), getCurrentInput(), in BeginInvocation()
18 CI.getPCHContainerOperations(), in BeginInvocation()
19 CI.getDiagnostics().getClient())) in BeginInvocation()
23 CI.getDiagnostics().setIgnoreAllWarnings(true); in BeginInvocation()
30 bool ModifyAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument
32 CI.getPCHContainerOperations(), in BeginInvocation()
33 CI.getDiagnostics().getClient()); in BeginInvocation()
39 bool MigrateAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument
41 CI.getInvocation(), getCurrentInput(), CI.getPCHContainerOperations(), in BeginInvocation()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Frontend/
H A DFrontendActions.h28 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
106 static bool ComputeASTConsumerArguments(CompilerInstance &CI,
112 CreateOutputFile(CompilerInstance &CI, StringRef InFile,
115 bool BeginSourceFileAction(CompilerInstance &CI) override;
120 CreateOutputFile(CompilerInstance &CI, StringRef InFile) = 0;
146 bool BeginSourceFileAction(CompilerInstance &CI) override;
154 bool BeginSourceFileAction(CompilerInstance &CI) override;
166 bool PrepareToExecuteAction(CompilerInstance &CI) override;
167 bool BeginSourceFileAction(CompilerInstance &CI) override;
189 bool BeginInvocation(CompilerInstance &CI) override;
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp37 if (!DT.dominates(CI, User)) in findCallsAtConstantOffset()
42 } else if (auto *CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset() local
43 DevirtCalls.push_back({Offset, *CI}); in findCallsAtConstantOffset()
55 int64_t Offset, const CallInst *CI, DominatorTree &DT) { in findLoadCallsAtConstantOffset() argument
69 CI, DT); in findLoadCallsAtConstantOffset()
77 SmallVectorImpl<CallInst *> &Assumes, const CallInst *CI, in findDevirtualizableCallsForTypeTest() argument
84 for (const Use &CIU : CI->uses()) in findDevirtualizableCallsForTypeTest()
92 M, DevirtCalls, CI->getArgOperand(0)->stripPointerCasts(), 0, CI, DT); in findDevirtualizableCallsForTypeTest()
99 const CallInst *CI, DominatorTree &DT) { in findDevirtualizableCallsForTypeCheckedLoad() argument
100 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLowerMASSVEntries.cpp56 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
110 if (Constant *Exp = dyn_cast<Constant>(CI->getArgOperand(1))) in handlePowSpecialCases()
114 if (!CI->hasNoInfs() || !CI->hasApproxFunc()) in handlePowSpecialCases()
120 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
123 CI->setCalledFunction( in handlePowSpecialCases()
137 if (CI->use_empty()) in lowerMASSVCall()
141 if (handlePowSpecialCases(CI, Func, M)) in lowerMASSVCall()
148 CI->setCalledFunction(FCache); in lowerMASSVCall()
176 auto *CI = dyn_cast<CallInst>(User); in runOnModule() local
177 if (!CI) in runOnModule()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h43 bool Unused = CI->use_empty(); in EraseInstruction()
47 assert((IsForwarding(GetBasicARCInstKind(CI)) || in EraseInstruction()
51 CI->replaceAllUsesWith(OldArg); in EraseInstruction()
54 CI->eraseFromParent(); in EraseInstruction()
127 if (auto *CI = dyn_cast<CallInst>(I)) in contains() local
128 return RVCalls.count(CI); in contains()
133 void eraseInst(CallInst *CI) { in eraseInst() argument
134 auto It = RVCalls.find(CI); in eraseInst()
138 if (auto *CI = dyn_cast<CallInst>(*U)) in eraseInst() local
140 CI->eraseFromParent(); in eraseInst()
[all …]

12345678910>>...20