/external/clang/lib/StaticAnalyzer/Frontend/ |
FrontendActions.cpp | 16 ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI, 18 return CreateAnalysisConsumer(CI.getPreprocessor(), 19 CI.getFrontendOpts().OutputFile, 20 CI.getAnalyzerOpts(), 21 CI.getFrontendOpts().Plugins);
|
/external/clang/lib/Frontend/ |
FrontendAction.cpp | 93 ASTConsumer* FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, 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, 132 setCompilerInstance(&CI); [all...] |
ASTMerge.cpp | 19 ASTConsumer *ASTMergeAction::CreateASTConsumer(CompilerInstance &CI, 21 return AdaptedAction->CreateASTConsumer(CI, InFile); 24 bool ASTMergeAction::BeginSourceFileAction(CompilerInstance &CI, 31 AdaptedAction->setCompilerInstance(&CI); 32 return AdaptedAction->BeginSourceFileAction(CI, Filename); 36 CompilerInstance &CI = getCompilerInstance(); 37 CI.getDiagnostics().getClient()->BeginSourceFile( 38 CI.getASTContext().getLangOptions()); 39 CI.getDiagnostics().SetArgToStringFn(&FormatASTNodeDiagnosticArgument, 40 &CI.getASTContext()) [all...] |
FrontendActions.cpp | 33 ASTConsumer *InitOnlyAction::CreateASTConsumer(CompilerInstance &CI, 45 ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI, 47 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) 52 ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI, 57 ASTConsumer *ASTDumpXMLAction::CreateASTConsumer(CompilerInstance &CI, 60 if (CI.getFrontendOpts().OutputFile.empty()) 63 OS = CI.createDefaultOutputFile(false, InFile); 68 ASTConsumer *ASTViewAction::CreateASTConsumer(CompilerInstance &CI, 73 ASTConsumer *DeclContextPrintAction::CreateASTConsumer(CompilerInstance &CI, 78 ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, [all...] |
/external/llvm/lib/Analysis/ |
MemoryBuiltins.cpp | 33 static bool isMallocCall(const CallInst *CI) { 34 if (!CI) 37 Function *Callee = CI->getCalledFunction(); 61 const CallInst *CI = dyn_cast<CallInst>(I); 62 return (isMallocCall(CI)) ? CI : NULL; 66 CallInst *CI = dyn_cast<CallInst>(I); 67 return (isMallocCall(CI)) ? CI : NULL; 91 static Value *computeArraySize(const CallInst *CI, const TargetData *TD [all...] |
/external/clang/lib/ARCMigrate/ |
ARCMTActions.cpp | 17 bool CheckAction::BeginInvocation(CompilerInstance &CI) { 18 if (arcmt::checkForManualIssues(CI.getInvocation(), getCurrentFile(), 20 CI.getDiagnostics().getClient())) 24 CI.getDiagnostics().setIgnoreAllWarnings(true); 31 bool ModifyAction::BeginInvocation(CompilerInstance &CI) { 32 return !arcmt::applyTransformations(CI.getInvocation(), 34 CI.getDiagnostics().getClient()); 40 bool MigrateAction::BeginInvocation(CompilerInstance &CI) { 41 if (arcmt::migrateWithTemporaryFiles(CI.getInvocation(), 44 CI.getDiagnostics().getClient() [all...] |
/external/clang/lib/Rewrite/ |
FrontendActions.cpp | 30 ASTConsumer *HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, 32 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) 33 return CreateHTMLPrinter(OS, CI.getPreprocessor()); 40 ASTConsumer *FixItAction::CreateASTConsumer(CompilerInstance &CI, 69 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI, 79 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), 80 CI.getLangOpts(), FixItOpts.get())); 93 ASTConsumer *RewriteObjCAction::CreateASTConsumer(CompilerInstance &CI, 95 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile, "cpp") [all...] |
/external/clang/include/clang/Lex/ |
PreprocessorLexer.h | 97 PPConditionalInfo CI; 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) { 105 ConditionalStack.push_back(CI); 111 bool popConditionalLevel(PPConditionalInfo &CI) { 113 CI = ConditionalStack.back() [all...] |
/external/llvm/tools/bugpoint-passes/ |
TestPasses.cpp | 61 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/clang/include/clang/ARCMigrate/ |
ARCMTActions.h | 21 virtual bool BeginInvocation(CompilerInstance &CI); 29 virtual bool BeginInvocation(CompilerInstance &CI); 40 virtual bool BeginInvocation(CompilerInstance &CI);
|
/external/llvm/lib/CodeGen/ |
IntrinsicLowering.cpp | 65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, 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, 320 CallSite CS(CI); 321 switch (CI->getArgOperand(0)->getType()->getTypeID()) [all...] |
GCStrategy.cpp | 237 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->getArgOperand(1), "", CI) [all...] |
/external/clang/include/clang/Rewrite/ |
FrontendActions.h | 25 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/include/clang/Frontend/ |
FrontendActions.h | 26 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...] |
FrontendAction.h | 55 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; } 92 virtual bool BeginSourceFileAction(CompilerInstance &CI, 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...] |
/external/llvm/include/llvm/CodeGen/ |
IntrinsicLowering.h | 50 void LowerIntrinsicCall(CallInst *CI); 55 static bool LowerToByteSwap(CallInst *CI);
|
/external/llvm/lib/Transforms/Scalar/ |
TailRecursionElimination.cpp | 92 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) { 240 if (CI->mayHaveSideEffects()) { 245 if (CI->mayWriteToMemory() || 258 if (I->getOperand(i) == CI) 270 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) [all...] |
SimplifyLibCalls.cpp | 60 /// 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, 68 Caller = CI->getParent()->getParent(); 71 if (CI->getCalledFunction()) 72 Context = &CI->getCalledFunction()->getContext(); 75 if (CI->getCallingConv() != llvm::CallingConv::C [all...] |
/external/llvm/lib/Transforms/Utils/ |
LowerExpectIntrinsic.cpp | 60 CallInst *CI = dyn_cast<CallInst>(SI->getCondition()); 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->getArgOperand(0) [all...] |
BuildLibCalls.cpp | 45 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); 47 CI->setCallingConv(F->getCallingConv()); 49 return CI; 65 CallInst *CI = B.CreateCall2(StrChr, CastToCStr(Ptr, B), 68 CI->setCallingConv(F->getCallingConv()); 69 return CI; 88 CallInst *CI = B.CreateCall3(StrNCmp, CastToCStr(Ptr1, B), 92 CI->setCallingConv(F->getCallingConv()); 94 return CI; 108 CallInst *CI = B.CreateCall2(StrCpy, CastToCStr(Dst, B), CastToCStr(Src, B) [all...] |
/external/clang/include/clang/StaticAnalyzer/Frontend/ |
FrontendActions.h | 25 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
|
/external/clang/lib/FrontendTool/ |
ExecuteCompilerInvocation.cpp | 31 static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { 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) { 88 FrontendAction *Act = CreateFrontendBaseAction(CI); 93 switch (CI.getFrontendOpts().ARCMTAction) [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCasts.cpp | 27 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { 28 Offset = CI->getZExtValue(); 78 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, 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->getOpcode()) [all...] |
/external/llvm/include/llvm/Analysis/ |
MemoryBuiltins.h | 54 PointerType *getMallocType(const CallInst *CI); 61 Type *getMallocAllocatedType(const CallInst *CI); 68 Value *getMallocArraySize(CallInst *CI, const TargetData *TD,
|
/external/llvm/lib/VMCore/ |
AutoUpgrade.cpp | 171 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { 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->use_empty() [all...] |