Home
last modified time | relevance | path

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

12345678910>>...24

/external/clang/lib/Frontend/
DFrontendAction.cpp138 FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, in CreateWrappedASTConsumer() argument
140 std::unique_ptr<ASTConsumer> Consumer = CreateASTConsumer(CI, InFile); in CreateWrappedASTConsumer()
144 if (CI.getFrontendOpts().AddPluginActions.size() == 0) in CreateWrappedASTConsumer()
152 for (size_t i = 0, e = CI.getFrontendOpts().AddPluginActions.size(); in CreateWrappedASTConsumer()
160 if (it->getName() != CI.getFrontendOpts().AddPluginActions[i]) in CreateWrappedASTConsumer()
163 if (P->ParseArgs(CI, CI.getFrontendOpts().AddPluginArgs[i])) in CreateWrappedASTConsumer()
164 Consumers.push_back(P->CreateASTConsumer(CI, InFile)); in CreateWrappedASTConsumer()
171 bool FrontendAction::BeginSourceFile(CompilerInstance &CI, in BeginSourceFile() argument
176 setCompilerInstance(&CI); in BeginSourceFile()
180 if (!BeginInvocation(CI)) in BeginSourceFile()
[all …]
DFrontendActions.cpp38 InitOnlyAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
50 ASTPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
51 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) in CreateASTConsumer()
52 return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter); in CreateASTConsumer()
57 ASTDumpAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
58 return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter, in CreateASTConsumer()
59 CI.getFrontendOpts().ASTDumpDecls, in CreateASTConsumer()
60 CI.getFrontendOpts().ASTDumpLookups); in CreateASTConsumer()
64 ASTDeclListAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
69 ASTViewAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
[all …]
DASTMerge.cpp20 ASTMergeAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
21 return AdaptedAction->CreateASTConsumer(CI, InFile); in CreateASTConsumer()
24 bool ASTMergeAction::BeginSourceFileAction(CompilerInstance &CI, in BeginSourceFileAction() argument
30 AdaptedAction->setCompilerInstance(&CI); in BeginSourceFileAction()
31 return AdaptedAction->BeginSourceFileAction(CI, Filename); in BeginSourceFileAction()
35 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
36 CI.getDiagnostics().getClient()->BeginSourceFile( in ExecuteAction()
37 CI.getASTContext().getLangOpts()); in ExecuteAction()
38 CI.getDiagnostics().SetArgToStringFn(&FormatASTNodeDiagnosticArgument, in ExecuteAction()
39 &CI.getASTContext()); in ExecuteAction()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp88 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument() argument
89 return std::any_of(CI->op_begin(), CI->op_end(), [](const Use &OI) { in callHasFloatingPointArgument()
194 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat() argument
195 Function *Callee = CI->getCalledFunction(); in optimizeStrCat()
205 Value *Dst = CI->getArgOperand(0); in optimizeStrCat()
206 Value *Src = CI->getArgOperand(1); in optimizeStrCat()
242 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat() argument
243 Function *Callee = CI->getCalledFunction(); in optimizeStrNCat()
253 Value *Dst = CI->getArgOperand(0); in optimizeStrNCat()
254 Value *Src = CI->getArgOperand(1); in optimizeStrNCat()
[all …]
DBuildLibCalls.cpp51 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); in EmitStrLen() local
53 CI->setCallingConv(F->getCallingConv()); in EmitStrLen()
55 return CI; in EmitStrLen()
77 CallInst *CI = B.CreateCall( in EmitStrChr() local
80 CI->setCallingConv(F->getCallingConv()); in EmitStrChr()
81 return CI; in EmitStrChr()
101 CallInst *CI = B.CreateCall( in EmitStrNCmp() local
105 CI->setCallingConv(F->getCallingConv()); in EmitStrNCmp()
107 return CI; in EmitStrNCmp()
126 CallInst *CI = in EmitStrCpy() local
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h51 Value *optimizeCall(CallInst *CI);
54 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B);
55 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B);
56 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B);
59 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
60 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
64 bool isFortifiedCallFoldable(CallInst *CI, unsigned ObjSizeOp,
100 Value *optimizeCall(CallInst *CI);
104 Value *optimizeStrCat(CallInst *CI, IRBuilder<> &B);
105 Value *optimizeStrNCat(CallInst *CI, IRBuilder<> &B);
[all …]
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument
70 Module *M = CI->getModule(); in ReplaceCallWith()
78 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in ReplaceCallWith()
81 NewCI->setName(CI->getName()); in ReplaceCallWith()
82 if (!CI->use_empty()) in ReplaceCallWith()
83 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith()
317 static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname, in ReplaceFPIntrinsicWithCall() argument
320 CallSite CS(CI); in ReplaceFPIntrinsicWithCall()
321 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall()
324 ReplaceCallWith(Fname, CI, CS.arg_begin(), CS.arg_end(), in ReplaceFPIntrinsicWithCall()
[all …]
DGCRootLowering.cpp143 if (CallInst *CI = dyn_cast<CallInst>(I)) in CouldBecomeSafePoint() local
144 if (Function *F = CI->getCalledFunction()) in CouldBecomeSafePoint()
211 if (IntrinsicInst *CI = dyn_cast<IntrinsicInst>(II++)) { in PerformDefaultLowering() local
212 Function *F = CI->getCalledFunction(); in PerformDefaultLowering()
218 new StoreInst(CI->getArgOperand(0), CI->getArgOperand(2), CI); in PerformDefaultLowering()
219 CI->replaceAllUsesWith(St); in PerformDefaultLowering()
220 CI->eraseFromParent(); in PerformDefaultLowering()
226 Value *Ld = new LoadInst(CI->getArgOperand(1), "", CI); in PerformDefaultLowering()
227 Ld->takeName(CI); in PerformDefaultLowering()
228 CI->replaceAllUsesWith(Ld); in PerformDefaultLowering()
[all …]
/external/clang/lib/Frontend/Rewrite/
DFrontendActions.cpp34 HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
35 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) in CreateASTConsumer()
36 return CreateHTMLPrinter(OS, CI.getPreprocessor()); in CreateASTConsumer()
44 FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
88 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI, in BeginSourceFileAction() argument
98 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction()
99 CI.getLangOpts(), FixItOpts.get())); in BeginSourceFileAction()
108 bool FixItRecompile::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument
113 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in BeginInvocation()
115 if (FixAction->BeginSourceFile(CI, FEOpts.Inputs[0])) { in BeginInvocation()
[all …]
/external/llvm/test/CodeGen/AMDGPU/
Dftrunc.f64.ll2 ; RUN: llc -march=amdgcn -mcpu=bonaire < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s
3 ; RUN: llc -march=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s
13 ; CI: v_trunc_f64
24 ; CI: v_trunc_f64_e32
46 ; CI: v_trunc_f64_e32
47 ; CI: v_trunc_f64_e32
55 ; FIXME-CI: v_trunc_f64_e32
56 ; FIXME-CI: v_trunc_f64_e32
57 ; FIXME-CI: v_trunc_f64_e32
65 ; CI: v_trunc_f64_e32
[all …]
Dfceil64.ll2 ; RUN: llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs < %s | FileCheck -check-prefix=CI -che…
3 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=CI -check…
13 ; CI: v_ceil_f64_e32
40 ; CI: v_ceil_f64_e32
41 ; CI: v_ceil_f64_e32
49 ; FIXME-CI: v_ceil_f64_e32
50 ; FIXME-CI: v_ceil_f64_e32
51 ; FIXME-CI: v_ceil_f64_e32
59 ; CI: v_ceil_f64_e32
60 ; CI: v_ceil_f64_e32
[all …]
Dffloor.f64.ll2 …verify-machineinstrs -enable-unsafe-fp-math < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s
3 …verify-machineinstrs -enable-unsafe-fp-math < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s
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 ; FIXME-CI: v_floor_f64_e32
72 ; FIXME-CI: v_floor_f64_e32
73 ; FIXME-CI: v_floor_f64_e32
[all …]
Dds_read2_superreg.ll1 …gcn -mcpu=bonaire -verify-machineinstrs -mattr=+load-store-opt < %s | FileCheck -check-prefix=CI %s
10 ; CI-LABEL: {{^}}simple_read2_v2f32_superreg_align4:
11 ; CI: ds_read2_b32 [[RESULT:v\[[0-9]+:[0-9]+\]]], v{{[0-9]+}} offset1:1{{$}}
12 ; CI: s_waitcnt lgkmcnt(0)
13 ; CI: buffer_store_dwordx2 [[RESULT]]
14 ; CI: s_endpgm
24 ; CI-LABEL: {{^}}simple_read2_v2f32_superreg:
25 ; CI: ds_read_b64 [[RESULT:v\[[0-9]+:[0-9]+\]]], v{{[0-9]+}}{{$}}
26 ; CI: s_waitcnt lgkmcnt(0)
27 ; CI: buffer_store_dwordx2 [[RESULT]]
[all …]
Dsi-triv-disjoint-mem-access.ll1 …einstrs -enable-misched -enable-aa-sched-mi < %s | FileCheck -check-prefix=FUNC -check-prefix=CI %s
13 ; CI: ds_read_b32 {{v[0-9]+}}, {{v[0-9]+}} offset:4
14 ; CI-NEXT: ds_read_b32 {{v[0-9]+}}, {{v[0-9]+}} offset:8
15 ; CI: buffer_store_dword
33 ; CI: ds_read_b32 {{v[0-9]+}}, {{v[0-9]+}} offset:4
34 ; CI: buffer_store_dword
35 ; CI: ds_read_b32 {{v[0-9]+}}, {{v[0-9]+}} offset:8
53 ; CI: ds_read_b32 {{v[0-9]+}}, {{v[0-9]+}} offset:4
54 ; CI: ds_read_b32 {{v[0-9]+}}, {{v[0-9]+}} offset:8
55 ; CI: buffer_store_dword
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp85 bool expandBFI(CallInst *CI);
88 bool expandBFM(CallInst *CI);
92 bool isSigned24BitOps(CallInst *CI);
93 void expandSigned24BitOps(CallInst *CI);
97 bool isRWGLocalOpt(CallInst *CI);
101 bool convertAccurateDivide(CallInst *CI);
102 void expandAccurateDivide(CallInst *CI);
111 bool propagateSamplerInst(CallInst *CI);
242 CallInst *CI = isConstVec[x]; in doIsConstCallConversionIfNeeded() local
243 Constant *CV = dyn_cast<Constant>(CI->getOperand(0)); in doIsConstCallConversionIfNeeded()
[all …]
/external/llvm/lib/Transforms/Scalar/
DTailRecursionElimination.cpp107 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
121 bool CanMoveAboveCall(Instruction *I, CallInst *CI);
122 Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
303 CallInst *CI = dyn_cast<CallInst>(&I); in markTails() local
304 if (!CI || CI->isTailCall()) in markTails()
307 bool IsNoTail = CI->isNoTailCall(); in markTails()
309 if (!IsNoTail && CI->doesNotAccessMemory()) { in markTails()
318 for (auto &Arg : CI->arg_operands()) { in markTails()
329 F.getContext(), "tailcallelim", F, CI->getDebugLoc(), in markTails()
331 CI->setTailCall(); in markTails()
[all …]
DLowerExpectIntrinsic.cpp45 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() local
46 if (!CI) in handleSwitchExpect()
49 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
53 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect()
54 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
68 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect()
87 CallInst *CI; in handleBranchExpect() local
91 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect()
95 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBranchExpect()
98 if (!CI) in handleBranchExpect()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp30 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { in decomposeSimpleLinearExpr() local
31 Offset = CI->getZExtValue(); in decomposeSimpleLinearExpr()
81 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation() argument
83 PointerType *PTy = cast<PointerType>(CI.getType()); in PromoteCastOfAllocation()
154 return ReplaceInstUsesWith(CI, New); in PromoteCastOfAllocation()
234 isEliminableCastPair(const CastInst *CI, ///< First cast instruction in isEliminableCastPair() argument
238 Type *SrcTy = CI->getOperand(0)->getType(); // A from above in isEliminableCastPair()
239 Type *MidTy = CI->getType(); // B from above in isEliminableCastPair()
242 Instruction::CastOps firstOp = Instruction::CastOps(CI->getOpcode()); in isEliminableCastPair()
274 if (const CastInst *CI = dyn_cast<CastInst>(V)) in ShouldOptimizeCast() local
[all …]
/external/llvm/lib/IR/
DAutoUpgrade.cpp363 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { in UpgradeIntrinsicCall() argument
364 Function *F = CI->getCalledFunction(); in UpgradeIntrinsicCall()
365 LLVMContext &C = CI->getContext(); in UpgradeIntrinsicCall()
367 Builder.SetInsertPoint(CI->getParent(), CI->getIterator()); in UpgradeIntrinsicCall()
379 Rep = Builder.CreateICmpEQ(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall()
382 Rep = Builder.CreateSExt(Rep, CI->getType(), ""); in UpgradeIntrinsicCall()
385 Rep = Builder.CreateICmpSGT(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall()
388 Rep = Builder.CreateSExt(Rep, CI->getType(), ""); in UpgradeIntrinsicCall()
393 Builder.SetInsertPoint(CI->getParent(), CI->getIterator()); in UpgradeIntrinsicCall()
401 Value *Arg0 = CI->getArgOperand(0); in UpgradeIntrinsicCall()
[all …]
/external/clang/lib/ARCMigrate/
DARCMTActions.cpp17 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
32 return !arcmt::applyTransformations(CI.getInvocation(), getCurrentInput(), in BeginInvocation()
33 CI.getPCHContainerOperations(), in BeginInvocation()
34 CI.getDiagnostics().getClient()); in BeginInvocation()
40 bool MigrateAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument
[all …]
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp28 ModelInjector::ModelInjector(CompilerInstance &CI) : CI(CI) {} in ModelInjector() argument
47 SourceManager &SM = CI.getSourceManager(); in onBodySynthesis()
50 AnalyzerOptionsRef analyzerOpts = CI.getAnalyzerOpts(); in onBodySynthesis()
67 new CompilerInvocation(CI.getInvocation())); in onBodySynthesis()
79 CompilerInstance Instance(CI.getPCHContainerOperations()); in onBodySynthesis()
82 new ForwardingDiagnosticConsumer(CI.getDiagnosticClient()), in onBodySynthesis()
87 Instance.setVirtualFileSystem(&CI.getVirtualFileSystem()); in onBodySynthesis()
91 Instance.setFileManager(&CI.getFileManager()); in onBodySynthesis()
93 Instance.setPreprocessor(&CI.getPreprocessor()); in onBodySynthesis()
94 Instance.setASTContext(&CI.getASTContext()); in onBodySynthesis()
/external/clang/include/clang/Frontend/
DFrontendActions.h29 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
44 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
50 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
56 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
62 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
68 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
74 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
89 ComputeASTConsumerArguments(CompilerInstance &CI, StringRef InFile,
99 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
114 bool BeginSourceFileAction(CompilerInstance &CI, StringRef Filename) override;
[all …]
/external/clang/include/clang/Lex/
DPreprocessorLexer.h99 PPConditionalInfo CI; in pushConditionalLevel() local
100 CI.IfLoc = DirectiveStart; in pushConditionalLevel()
101 CI.WasSkipping = WasSkipping; in pushConditionalLevel()
102 CI.FoundNonSkip = FoundNonSkip; in pushConditionalLevel()
103 CI.FoundElse = FoundElse; in pushConditionalLevel()
104 ConditionalStack.push_back(CI); in pushConditionalLevel()
106 void pushConditionalLevel(const PPConditionalInfo &CI) { in pushConditionalLevel() argument
107 ConditionalStack.push_back(CI); in pushConditionalLevel()
113 bool popConditionalLevel(PPConditionalInfo &CI) { in popConditionalLevel() argument
116 CI = ConditionalStack.pop_back_val(); in popConditionalLevel()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARC.h53 static inline void EraseInstruction(Instruction *CI) { in EraseInstruction() argument
54 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); in EraseInstruction()
56 bool Unused = CI->use_empty(); in EraseInstruction()
60 assert((IsForwarding(GetBasicARCInstKind(CI)) || in EraseInstruction()
61 (IsNoopOnNull(GetBasicARCInstKind(CI)) && in EraseInstruction()
64 CI->replaceAllUsesWith(OldArg); in EraseInstruction()
67 CI->eraseFromParent(); in EraseInstruction()
/external/clang/lib/FrontendTool/
DExecuteCompilerInvocation.cpp34 static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { in CreateFrontendBaseAction() argument
39 switch (CI.getFrontendOpts().ProgramAction) { in CreateFrontendBaseAction()
66 if (it->getName() == CI.getFrontendOpts().ActionName) { in CreateFrontendBaseAction()
68 if (!P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs)) in CreateFrontendBaseAction()
74 CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name) in CreateFrontendBaseAction()
75 << CI.getFrontendOpts().ActionName; in CreateFrontendBaseAction()
82 if (CI.getPreprocessorOutputOpts().RewriteIncludes) in CreateFrontendBaseAction()
109 CI.getDiagnostics().Report(diag::err_fe_action_not_available) << Action; in CreateFrontendBaseAction()
116 static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { in CreateFrontendAction() argument
118 FrontendAction *Act = CreateFrontendBaseAction(CI); in CreateFrontendAction()
[all …]

12345678910>>...24