Searched refs:CI (Results 1 - 25 of 187) sorted by relevance

12345678

/external/clang/lib/StaticAnalyzer/Frontend/
H A DFrontendActions.cpp16 ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI, argument
18 return CreateAnalysisConsumer(CI.getPreprocessor(),
19 CI.getFrontendOpts().OutputFile,
20 CI.getAnalyzerOpts(),
21 CI.getFrontendOpts().Plugins);
/external/clang/lib/Frontend/
H A DFrontendAction.cpp93 ASTConsumer* FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, argument
95 ASTConsumer* Consumer = CreateASTConsumer(CI, InFile);
99 if (CI.getFrontendOpts().AddPluginActions.size() == 0)
106 for (size_t i = 0, e = CI.getFrontendOpts().AddPluginActions.size();
114 if (it->getName() == CI.getFrontendOpts().AddPluginActions[i]) {
117 if (P->ParseArgs(CI, CI.getFrontendOpts().AddPluginArgs[i]))
118 Consumers.push_back(c->CreateASTConsumer(CI, InFile));
126 bool FrontendAction::BeginSourceFile(CompilerInstance &CI, argument
132 setCompilerInstance(&CI);
277 CompilerInstance &CI = getCompilerInstance(); local
303 CompilerInstance &CI = getCompilerInstance(); local
363 CompilerInstance &CI = getCompilerInstance(); local
383 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument
388 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument
392 BeginInvocation(CompilerInstance &CI) argument
395 BeginSourceFileAction(CompilerInstance &CI, StringRef Filename) argument
[all...]
H A DASTMerge.cpp19 ASTConsumer *ASTMergeAction::CreateASTConsumer(CompilerInstance &CI, argument
21 return AdaptedAction->CreateASTConsumer(CI, InFile);
24 bool ASTMergeAction::BeginSourceFileAction(CompilerInstance &CI, argument
31 AdaptedAction->setCompilerInstance(&CI);
32 return AdaptedAction->BeginSourceFileAction(CI, Filename);
36 CompilerInstance &CI = getCompilerInstance(); local
37 CI.getDiagnostics().getClient()->BeginSourceFile(
38 CI.getASTContext().getLangOptions());
39 CI.getDiagnostics().SetArgToStringFn(&FormatASTNodeDiagnosticArgument,
40 &CI
[all...]
H A DFrontendActions.cpp33 ASTConsumer *InitOnlyAction::CreateASTConsumer(CompilerInstance &CI, argument
45 ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI, argument
47 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile))
52 ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI, argument
57 ASTConsumer *ASTDumpXMLAction::CreateASTConsumer(CompilerInstance &CI, argument
60 if (CI.getFrontendOpts().OutputFile.empty())
63 OS = CI.createDefaultOutputFile(false, InFile);
68 ASTConsumer *ASTViewAction::CreateASTConsumer(CompilerInstance &CI, argument
73 ASTConsumer *DeclContextPrintAction::CreateASTConsumer(CompilerInstance &CI, argument
78 ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, argument
92 ComputeASTConsumerArguments(CompilerInstance &CI, StringRef InFile, std::string &Sysroot, std::string &OutputFile, raw_ostream *&OS) argument
116 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument
156 CompilerInstance &CI = getCompilerInstance(); local
185 CompilerInstance &CI = getCompilerInstance(); local
256 CompilerInstance &CI = getCompilerInstance(); local
[all...]
/external/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp33 static bool isMallocCall(const CallInst *CI) { argument
34 if (!CI)
37 Function *Callee = CI->getCalledFunction();
61 const CallInst *CI = dyn_cast<CallInst>(I); local
62 return (isMallocCall(CI)) ? CI : NULL;
66 CallInst *CI = dyn_cast<CallInst>(I); local
67 return (isMallocCall(CI)) ? CI : NULL;
91 static Value *computeArraySize(const CallInst *CI, cons argument
120 const CallInst *CI = extractMallocCall(I); local
136 getMallocType(const CallInst *CI) argument
167 getMallocAllocatedType(const CallInst *CI) argument
177 getMallocArraySize(CallInst *CI, const TargetData *TD, bool LookThroughSExt) argument
189 const CallInst *CI = dyn_cast<CallInst>(I); local
[all...]
/external/clang/lib/ARCMigrate/
H A DARCMTActions.cpp17 bool CheckAction::BeginInvocation(CompilerInstance &CI) { argument
18 if (arcmt::checkForManualIssues(CI.getInvocation(), getCurrentFile(),
20 CI.getDiagnostics().getClient()))
24 CI.getDiagnostics().setIgnoreAllWarnings(true);
31 bool ModifyAction::BeginInvocation(CompilerInstance &CI) { argument
32 return !arcmt::applyTransformations(CI.getInvocation(),
34 CI.getDiagnostics().getClient());
40 bool MigrateAction::BeginInvocation(CompilerInstance &CI) { argument
41 if (arcmt::migrateWithTemporaryFiles(CI.getInvocation(),
44 CI
[all...]
/external/clang/lib/Rewrite/
H A DFrontendActions.cpp30 ASTConsumer *HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, argument
32 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile))
33 return CreateHTMLPrinter(OS, CI.getPreprocessor());
40 ASTConsumer *FixItAction::CreateASTConsumer(CompilerInstance &CI, argument
69 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI, argument
79 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(),
80 CI.getLangOpts(), FixItOpts.get()));
93 ASTConsumer *RewriteObjCAction::CreateASTConsumer(CompilerInstance &CI, argument
95 if (raw_ostream *OS = CI
103 CompilerInstance &CI = getCompilerInstance(); local
111 CompilerInstance &CI = getCompilerInstance(); local
[all...]
/external/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp61 if (CallInst *CI = dyn_cast<CallInst>(I)) {
62 if (!CI->use_empty())
63 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
64 CI->getParent()->getInstList().erase(CI);
/external/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, argument
70 Module *M = CI->getParent()->getParent()->getParent();
78 IRBuilder<> Builder(CI->getParent(), CI);
81 NewCI->setName(CI->getName());
82 if (!CI->use_empty())
83 CI->replaceAllUsesWith(NewCI);
317 static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname, argument
320 CallSite CS(CI);
321 switch (CI
340 LowerIntrinsicCall(CallInst *CI) argument
549 LowerToByteSwap(CallInst *CI) argument
[all...]
H A DGCStrategy.cpp237 if (CallInst *CI = dyn_cast<CallInst>(I))
238 if (Function *F = CI->getCalledFunction())
284 if (IntrinsicInst *CI = dyn_cast<IntrinsicInst>(II++)) {
285 Function *F = CI->getCalledFunction();
290 Value *St = new StoreInst(CI->getArgOperand(0),
291 CI->getArgOperand(2), CI);
292 CI->replaceAllUsesWith(St);
293 CI->eraseFromParent();
299 Value *Ld = new LoadInst(CI
358 VisitCallPoint(MachineBasicBlock::iterator CI) argument
[all...]
/external/llvm/include/llvm/CodeGen/
H A DIntrinsicLowering.h50 void LowerIntrinsicCall(CallInst *CI);
55 static bool LowerToByteSwap(CallInst *CI);
/external/clang/include/clang/Lex/
H A DPreprocessorLexer.h97 PPConditionalInfo CI; local
98 CI.IfLoc = DirectiveStart;
99 CI.WasSkipping = WasSkipping;
100 CI.FoundNonSkip = FoundNonSkip;
101 CI.FoundElse = FoundElse;
102 ConditionalStack.push_back(CI);
104 void pushConditionalLevel(const PPConditionalInfo &CI) { argument
105 ConditionalStack.push_back(CI);
111 bool popConditionalLevel(PPConditionalInfo &CI) { argument
113 CI
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp92 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
106 bool CanMoveAboveCall(Instruction *I, CallInst *CI);
107 Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
219 if (CallInst *CI = dyn_cast<CallInst>(I)) {
220 CI->setTailCall();
232 bool TailCallElim::CanMoveAboveCall(Instruction *I, CallInst *CI) { argument
240 if (CI->mayHaveSideEffects()) {
245 if (CI->mayWriteToMemory() ||
258 if (I->getOperand(i) == CI)
270 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnIns argument
305 getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) argument
332 CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI) argument
410 EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, BasicBlock *&OldEntry, bool &TailCallsAreMarkedTail, SmallVector<PHINode*, 8> &ArgumentPHIs, bool CannotTailCallElimCallsMarkedTail) argument
627 CallInst *CI = FindTRECandidate(Ret, CannotTailCallElimCallsMarkedTail); local
[all...]
H A DSimplifyLibCalls.cpp60 /// performed. If it returns CI, then it transformed the call and CI is to be
61 /// deleted. If it returns something else, replace CI with the new value and
62 /// delete CI.
63 virtual Value *CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B)
66 Value *OptimizeCall(CallInst *CI, const TargetData *TD, argument
68 Caller = CI->getParent()->getParent();
71 if (CI->getCalledFunction())
72 Context = &CI->getCalledFunction()->getContext();
75 if (CI
104 CallHasFloatingPointArgument(const CallInst *CI) argument
135 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
185 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
233 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
283 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
324 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
373 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
431 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
469 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
518 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
544 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
582 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
604 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
633 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
665 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
729 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
777 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
799 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
821 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
847 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
902 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
939 CallInst *CI = B.CreateCall2(Callee, One, LdExpArg); local
953 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
980 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1016 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1035 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1053 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1074 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1095 OptimizeFixedFormatString(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1153 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1184 OptimizeFixedFormatString(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1247 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1278 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1313 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1338 OptimizeFixedFormatString(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1385 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1416 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument
1608 CallInst *CI = dyn_cast<CallInst>(I++); local
[all...]
/external/llvm/lib/Transforms/Utils/
H A DLowerExpectIntrinsic.cpp60 CallInst *CI = dyn_cast<CallInst>(SI->getCondition()); local
61 if (!CI)
64 Function *Fn = CI->getCalledFunction();
68 Value *ArgValue = CI->getArgOperand(0);
69 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
73 LLVMContext &Context = CI->getContext();
107 CallInst *CI = dyn_cast<CallInst>(CmpI->getOperand(0));
108 if (!CI)
111 Function *Fn = CI->getCalledFunction();
115 Value *ArgValue = CI
156 CallInst *CI = dyn_cast<CallInst>(BI++); local
[all...]
H A DBuildLibCalls.cpp45 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); local
47 CI->setCallingConv(F->getCallingConv());
49 return CI;
65 CallInst *CI = B.CreateCall2(StrChr, CastToCStr(Ptr, B), local
68 CI->setCallingConv(F->getCallingConv());
69 return CI;
88 CallInst *CI = B.CreateCall3(StrNCmp, CastToCStr(Ptr1, B), local
92 CI->setCallingConv(F->getCallingConv());
94 return CI;
108 CallInst *CI local
127 CallInst *CI = B.CreateCall3(StrNCpy, CastToCStr(Dst, B), CastToCStr(Src, B), local
152 CallInst *CI = B.CreateCall4(MemCpy, Dst, Src, Len, ObjSize); local
172 CallInst *CI = B.CreateCall3(MemChr, CastToCStr(Ptr, B), Val, Len, "memchr"); local
196 CallInst *CI = B.CreateCall3(MemCmp, CastToCStr(Ptr1, B), CastToCStr(Ptr2, B), local
228 CallInst *CI = B.CreateCall(Callee, Op, Name); local
242 CallInst *CI = B.CreateCall(PutChar, local
266 CallInst *CI = B.CreateCall(PutS, CastToCStr(Str, B), "puts"); local
293 CallInst *CI = B.CreateCall2(F, Char, File, "fputc"); local
318 CallInst *CI = B.CreateCall2(F, CastToCStr(Str, B), File, "fputs"); local
348 CallInst *CI = B.CreateCall4(F, CastToCStr(Ptr, B), Size, local
357 fold(CallInst *CI, const TargetData *TD) argument
[all...]
/external/clang/include/clang/Rewrite/
H A DFrontendActions.h25 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
34 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
37 virtual bool BeginSourceFileAction(CompilerInstance &CI,
51 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
/external/clang/lib/FrontendTool/
H A DExecuteCompilerInvocation.cpp31 static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { argument
34 switch (CI.getFrontendOpts().ProgramAction) {
62 if (it->getName() == CI.getFrontendOpts().ActionName) {
64 if (!P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs))
70 CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name)
71 << CI.getFrontendOpts().ActionName;
86 static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { argument
88 FrontendAction *Act = CreateFrontendBaseAction(CI);
93 switch (CI
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp27 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) {
28 Offset = CI->getZExtValue();
78 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, argument
83 PointerType *PTy = cast<PointerType>(CI.getType());
139 // things that used it to use the new cast. This will also hack on CI, but it
147 return ReplaceInstUsesWith(CI, New);
231 const CastInst *CI, ///< The first cast instruction
237 Type *SrcTy = CI->getOperand(0)->getType(); // A from above
238 Type *MidTy = CI->getType(); // B from above
241 Instruction::CastOps firstOp = Instruction::CastOps(CI
230 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, TargetData *TD ) argument
284 commonCastTransforms(CastInst &CI) argument
429 visitTrunc(TruncInst &CI) argument
503 transformZExtICmp(ICmpInst *ICI, Instruction &CI, bool DoXform) argument
746 visitZExt(ZExtInst &CI) argument
890 transformSExtICmp(ICmpInst *ICI, Instruction &CI) argument
1052 visitSExt(SExtInst &CI) argument
1179 visitFPTrunc(FPTruncInst &CI) argument
1250 visitFPExt(CastInst &CI) argument
1294 visitUIToFP(CastInst &CI) argument
1298 visitSIToFP(CastInst &CI) argument
1302 visitIntToPtr(IntToPtrInst &CI) argument
1328 commonPointerCastTransforms(CastInst &CI) argument
1378 visitPtrToInt(PtrToIntInst &CI) argument
1544 ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1)); local
1571 OptimizeIntegerToVectorInsertions(BitCastInst &CI, InstCombiner &IC) argument
1598 OptimizeIntToFloatBitCast(BitCastInst &CI,InstCombiner &IC) argument
1648 visitBitCast(BitCastInst &CI) argument
[all...]
/external/clang/include/clang/ARCMigrate/
H A DARCMTActions.h21 virtual bool BeginInvocation(CompilerInstance &CI);
29 virtual bool BeginInvocation(CompilerInstance &CI);
40 virtual bool BeginInvocation(CompilerInstance &CI);
/external/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h54 PointerType *getMallocType(const CallInst *CI);
61 Type *getMallocAllocatedType(const CallInst *CI);
68 Value *getMallocArraySize(CallInst *CI, const TargetData *TD,
/external/llvm/lib/VMCore/
H A DAutoUpgrade.cpp171 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { argument
172 Function *F = CI->getCalledFunction();
173 LLVMContext &C = CI->getContext();
174 ImmutableCallSite CS(CI);
183 Type *VecTy = CI->getType();
186 Builder.SetInsertPoint(CI->getParent(), CI);
188 Value *BC = Builder.CreateBitCast(CI->getArgOperand(0),
191 LoadInst *LI = Builder.CreateLoad(BC, CI->getName());
196 if (!CI
415 CallInst *CI = cast<CallInst>(Declare->use_back()); local
[all...]
/external/clang/include/clang/Frontend/
H A DFrontendAction.h55 ASTConsumer* CreateWrappedASTConsumer(CompilerInstance &CI,
69 /// \param CI - The current compiler instance, provided as a convenience, \see
76 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
85 virtual bool BeginInvocation(CompilerInstance &CI) { return true; } argument
92 virtual bool BeginSourceFileAction(CompilerInstance &CI, argument
188 /// \param CI - The compiler instance this action is being run from. The
205 bool BeginSourceFile(CompilerInstance &CI, StringRef Filename,
235 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
241 /// \param CI - The compiler instance, for use in reporting diagnostics.
245 virtual bool ParseArgs(const CompilerInstance &CI,
[all...]
H A DFrontendActions.h26 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
41 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
47 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
53 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
59 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
65 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
73 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
90 static bool ComputeASTConsumerArguments(CompilerInstance &CI,
99 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
122 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenAction.cpp270 static raw_ostream *GetOutputStream(CompilerInstance &CI, argument
275 return CI.createDefaultOutputFile(false, InFile, "s");
277 return CI.createDefaultOutputFile(false, InFile, "ll");
279 return CI.createDefaultOutputFile(true, InFile, "bc");
284 return CI.createDefaultOutputFile(true, InFile, "o");
290 ASTConsumer *CodeGenAction::CreateASTConsumer(CompilerInstance &CI, argument
293 llvm::OwningPtr<raw_ostream> OS(GetOutputStream(CI, InFile, BA));
298 new BackendConsumer(BA, CI.getDiagnostics(),
299 CI.getCodeGenOpts(), CI
310 CompilerInstance &CI = getCompilerInstance(); local
[all...]

Completed in 1730 milliseconds

12345678