/external/clang/lib/StaticAnalyzer/Frontend/ |
H A D | FrontendActions.cpp | 16 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/ARCMigrate/ |
H A D | ARCMTActions.cpp | 17 bool CheckAction::BeginInvocation(CompilerInstance &CI) { argument 18 if (arcmt::checkForManualIssues(CI.getInvocation(), getCurrentInput(), 19 CI.getDiagnostics().getClient())) 23 CI.getDiagnostics().setIgnoreAllWarnings(true); 30 bool ModifyAction::BeginInvocation(CompilerInstance &CI) { argument 31 return !arcmt::applyTransformations(CI.getInvocation(), getCurrentInput(), 32 CI.getDiagnostics().getClient()); 38 bool MigrateAction::BeginInvocation(CompilerInstance &CI) { argument 39 if (arcmt::migrateWithTemporaryFiles(CI.getInvocation(), 41 CI [all...] |
H A D | ObjCMT.cpp | 94 ASTConsumer *ObjCMigrateAction::CreateASTConsumer(CompilerInstance &CI, argument 97 WrappedConsumer = WrapperFrontendAction::CreateASTConsumer(CI, InFile); 108 bool ObjCMigrateAction::BeginInvocation(CompilerInstance &CI) { argument 109 Remapper.initFromDisk(MigrateDir, CI.getDiagnostics(), 111 CompInst = &CI; 112 CI.getDiagnostics().setIgnoreAllWarnings(true); 113 CI.getPreprocessorOpts().DetailedRecord = true; 114 CI.getPreprocessorOpts().DetailedRecordConditionalDirectives = true; 212 bool MigrateSourceAction::BeginInvocation(CompilerInstance &CI) { argument 213 CI 219 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument [all...] |
/external/clang/lib/Frontend/ |
H A D | FrontendAction.cpp | 125 ASTConsumer* FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, argument 127 ASTConsumer* Consumer = CreateASTConsumer(CI, InFile); 131 if (CI.getFrontendOpts().AddPluginActions.size() == 0) 138 for (size_t i = 0, e = CI.getFrontendOpts().AddPluginActions.size(); 146 if (it->getName() == CI.getFrontendOpts().AddPluginActions[i]) { 149 if (P->ParseArgs(CI, CI.getFrontendOpts().AddPluginArgs[i])) 150 Consumers.push_back(c->CreateASTConsumer(CI, InFile)); 158 bool FrontendAction::BeginSourceFile(CompilerInstance &CI, argument 163 setCompilerInstance(&CI); 323 CompilerInstance &CI = getCompilerInstance(); local 345 CompilerInstance &CI = getCompilerInstance(); local 405 CompilerInstance &CI = getCompilerInstance(); local 428 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 433 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 437 BeginInvocation(CompilerInstance &CI) argument 440 BeginSourceFileAction(CompilerInstance &CI, StringRef Filename) argument [all...] |
H A D | FrontendActions.cpp | 35 ASTConsumer *InitOnlyAction::CreateASTConsumer(CompilerInstance &CI, argument 47 ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI, argument 49 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) 50 return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter); 54 ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI, argument 56 return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter); 59 ASTConsumer *ASTDeclListAction::CreateASTConsumer(CompilerInstance &CI, argument 64 ASTConsumer *ASTDumpXMLAction::CreateASTConsumer(CompilerInstance &CI, argument 67 if (CI.getFrontendOpts().OutputFile.empty()) 70 OS = CI 75 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 80 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 85 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 98 ComputeASTConsumerArguments(CompilerInstance &CI, StringRef InFile, std::string &Sysroot, std::string &OutputFile, raw_ostream *&OS) argument 122 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 208 BeginSourceFileAction(CompilerInstance &CI, StringRef Filename) argument 328 ComputeASTConsumerArguments(CompilerInstance &CI, StringRef InFile, std::string &Sysroot, std::string &OutputFile, raw_ostream *&OS) argument 357 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 397 CompilerInstance &CI = getCompilerInstance(); local 426 CompilerInstance &CI = getCompilerInstance(); local 497 CompilerInstance &CI = getCompilerInstance(); local [all...] |
H A D | ASTMerge.cpp | 19 ASTConsumer *ASTMergeAction::CreateASTConsumer(CompilerInstance &CI, argument 21 return AdaptedAction->CreateASTConsumer(CI, InFile); 24 bool ASTMergeAction::BeginSourceFileAction(CompilerInstance &CI, argument 30 AdaptedAction->setCompilerInstance(&CI); 31 return AdaptedAction->BeginSourceFileAction(CI, Filename); 35 CompilerInstance &CI = getCompilerInstance(); local 36 CI.getDiagnostics().getClient()->BeginSourceFile( 37 CI.getASTContext().getLangOpts()); 38 CI.getDiagnostics().SetArgToStringFn(&FormatASTNodeDiagnosticArgument, 39 &CI [all...] |
/external/clang/lib/Rewrite/Frontend/ |
H A D | FrontendActions.cpp | 33 ASTConsumer *HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, argument 35 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) 36 return CreateHTMLPrinter(OS, CI.getPreprocessor()); 43 ASTConsumer *FixItAction::CreateASTConsumer(CompilerInstance &CI, argument 89 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI, argument 99 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), 100 CI.getLangOpts(), FixItOpts.get())); 109 bool FixItRecompile::BeginInvocation(CompilerInstance &CI) { argument 114 const FrontendOptions &FEOpts = CI 155 CreateASTConsumer(CompilerInstance &CI, StringRef InFile) argument 170 CompilerInstance &CI = getCompilerInstance(); local 178 CompilerInstance &CI = getCompilerInstance(); local 186 CompilerInstance &CI = getCompilerInstance(); local [all...] |
/external/llvm/tools/bugpoint-passes/ |
H A D | 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/llvm/lib/CodeGen/ |
H A D | IntrinsicLowering.cpp | 65 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 544 LowerToByteSwap(CallInst *CI) argument [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | IntrinsicLowering.h | 50 void LowerIntrinsicCall(CallInst *CI); 55 static bool LowerToByteSwap(CallInst *CI);
|
/external/clang/include/clang/Lex/ |
H A D | PreprocessorLexer.h | 99 PPConditionalInfo CI; local 100 CI.IfLoc = DirectiveStart; 101 CI.WasSkipping = WasSkipping; 102 CI.FoundNonSkip = FoundNonSkip; 103 CI.FoundElse = FoundElse; 104 ConditionalStack.push_back(CI); 106 void pushConditionalLevel(const PPConditionalInfo &CI) { argument 107 ConditionalStack.push_back(CI); 113 bool popConditionalLevel(PPConditionalInfo &CI) { argument 115 CI [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | 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) { 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 D | SimplifyLibCalls.cpp | 65 /// performed. If it returns CI, then it transformed the call and CI is to be 66 /// deleted. If it returns something else, replace CI with the new value and 67 /// delete CI. 68 virtual Value *CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) 71 Value *OptimizeCall(CallInst *CI, const TargetData *TD, argument 73 Caller = CI->getParent()->getParent(); 76 if (CI->getCalledFunction()) 77 Context = &CI->getCalledFunction()->getContext(); 80 if (CI 109 CallHasFloatingPointArgument(const CallInst *CI) argument 140 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 192 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 239 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 288 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 327 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 375 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 433 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 474 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 515 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 564 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 590 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 628 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 650 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 682 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 717 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 786 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 834 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 856 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 878 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 906 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 937 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 966 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1028 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1072 CallInst *CI = B.CreateCall2(Callee, One, LdExpArg); local 1090 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1126 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1145 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1163 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1184 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1205 OptimizeFixedFormatString(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1261 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1292 OptimizeFixedFormatString(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1357 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1388 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1424 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1449 OptimizeFixedFormatString(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1496 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1527 CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B) argument 1760 CallInst *CI = dyn_cast<CallInst>(I++); local [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | LowerExpectIntrinsic.cpp | 61 CallInst *CI = dyn_cast<CallInst>(SI->getCondition()); local 62 if (!CI) 65 Function *Fn = CI->getCalledFunction(); 69 Value *ArgValue = CI->getArgOperand(0); 70 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); 85 MDBuilder(CI->getContext()).createBranchWeights(Weights)); 105 CallInst *CI = dyn_cast<CallInst>(CmpI->getOperand(0)); 106 if (!CI) 109 Function *Fn = CI->getCalledFunction(); 113 Value *ArgValue = CI 151 CallInst *CI = dyn_cast<CallInst>(BI++); local [all...] |
H A D | BuildLibCalls.cpp | 53 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); local 55 CI->setCallingConv(F->getCallingConv()); 57 return CI; 80 CallInst *CI = B.CreateCall2(StrNLen, CastToCStr(Ptr, B), MaxLen, "strnlen"); local 82 CI->setCallingConv(F->getCallingConv()); 84 return CI; 103 CallInst *CI = B.CreateCall2(StrChr, CastToCStr(Ptr, B), local 106 CI->setCallingConv(F->getCallingConv()); 107 return CI; 130 CallInst *CI local 154 CallInst *CI = B.CreateCall2(StrCpy, CastToCStr(Dst, B), CastToCStr(Src, B), local 177 CallInst *CI = B.CreateCall3(StrNCpy, CastToCStr(Dst, B), CastToCStr(Src, B), local 206 CallInst *CI = B.CreateCall4(MemCpy, Dst, Src, Len, ObjSize); local 230 CallInst *CI = B.CreateCall3(MemChr, CastToCStr(Ptr, B), Val, Len, "memchr"); local 258 CallInst *CI = B.CreateCall3(MemCmp, CastToCStr(Ptr1, B), CastToCStr(Ptr2, B), local 287 CallInst *CI = B.CreateCall(Callee, Op, Name); local 305 CallInst *CI = B.CreateCall(PutChar, local 333 CallInst *CI = B.CreateCall(PutS, CastToCStr(Str, B), "puts"); local 363 CallInst *CI = B.CreateCall2(F, Char, File, "fputc"); local 393 CallInst *CI = B.CreateCall2(F, CastToCStr(Str, B), File, "fputs"); local 429 CallInst *CI = B.CreateCall4(F, CastToCStr(Ptr, B), Size, local 439 fold(CallInst *CI, const TargetData *TD, const TargetLibraryInfo *TLI) argument [all...] |
/external/clang/include/clang/ARCMigrate/ |
H A D | ARCMTActions.h | 22 virtual bool BeginInvocation(CompilerInstance &CI); 30 virtual bool BeginInvocation(CompilerInstance &CI); 39 virtual bool BeginInvocation(CompilerInstance &CI); 40 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 49 virtual bool BeginInvocation(CompilerInstance &CI); 70 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,StringRef InFile); 71 virtual bool BeginInvocation(CompilerInstance &CI);
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 28 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { 29 Offset = CI->getZExtValue(); 79 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, argument 84 PointerType *PTy = cast<PointerType>(CI.getType()); 140 // things that used it to use the new cast. This will also hack on CI, but it 148 return ReplaceInstUsesWith(CI, New); 229 const CastInst *CI, ///< The first cast instruction 235 Type *SrcTy = CI->getOperand(0)->getType(); // A from above 236 Type *MidTy = CI->getType(); // B from above 239 Instruction::CastOps firstOp = Instruction::CastOps(CI 228 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, TargetData *TD ) argument 282 commonCastTransforms(CastInst &CI) argument 427 visitTrunc(TruncInst &CI) argument 501 transformZExtICmp(ICmpInst *ICI, Instruction &CI, bool DoXform) argument 738 visitZExt(ZExtInst &CI) argument 882 transformSExtICmp(ICmpInst *ICI, Instruction &CI) argument 1040 visitSExt(SExtInst &CI) argument 1170 visitFPTrunc(FPTruncInst &CI) argument 1240 visitFPExt(CastInst &CI) argument 1284 visitUIToFP(CastInst &CI) argument 1288 visitSIToFP(CastInst &CI) argument 1292 visitIntToPtr(IntToPtrInst &CI) argument 1318 commonPointerCastTransforms(CastInst &CI) argument 1367 visitPtrToInt(PtrToIntInst &CI) argument 1534 ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1)); local 1561 OptimizeIntegerToVectorInsertions(BitCastInst &CI, InstCombiner &IC) argument 1588 OptimizeIntToFloatBitCast(BitCastInst &CI,InstCombiner &IC) argument 1638 visitBitCast(BitCastInst &CI) argument [all...] |
/external/llvm/lib/VMCore/ |
H A D | AutoUpgrade.cpp | 163 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { argument 164 Function *F = CI->getCalledFunction(); 165 LLVMContext &C = CI->getContext(); 167 Builder.SetInsertPoint(CI->getParent(), CI); 179 Rep = Builder.CreateICmpEQ(CI->getArgOperand(0), CI->getArgOperand(1), 182 Rep = Builder.CreateSExt(Rep, CI->getType(), ""); 185 Rep = Builder.CreateICmpSGT(CI->getArgOperand(0), CI [all...] |
/external/clang/include/clang/Frontend/ |
H A D | FrontendActions.h | 28 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 43 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 49 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 55 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 61 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 67 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 73 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 79 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 93 static bool ComputeASTConsumerArguments(CompilerInstance &CI, 104 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, [all...] |
H A D | FrontendAction.h | 37 ASTConsumer* CreateWrappedASTConsumer(CompilerInstance &CI, 51 /// \param CI - The current compiler instance, provided as a convenience, \see 58 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 67 virtual bool BeginInvocation(CompilerInstance &CI) { return true; } argument 74 virtual bool BeginSourceFileAction(CompilerInstance &CI, argument 174 /// \param CI - The compiler instance this action is being run from. The 188 bool BeginSourceFile(CompilerInstance &CI, const FrontendInputFile &Input); 218 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 224 /// \param CI - The compiler instance, for use in reporting diagnostics. 228 virtual bool ParseArgs(const CompilerInstance &CI, [all...] |
/external/clang/include/clang/Rewrite/Frontend/ |
H A D | FrontendActions.h | 25 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 34 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 37 virtual bool BeginSourceFileAction(CompilerInstance &CI, 57 virtual bool BeginInvocation(CompilerInstance &CI); 62 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
|
/external/clang/lib/FrontendTool/ |
H A D | ExecuteCompilerInvocation.cpp | 31 static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { argument 34 switch (CI.getFrontendOpts().ProgramAction) { 60 if (it->getName() == CI.getFrontendOpts().ActionName) { 62 if (!P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs)) 68 CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name) 69 << CI.getFrontendOpts().ActionName; 76 if (CI.getPreprocessorOutputOpts().RewriteIncludes) 91 static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { argument 93 FrontendAction *Act = CreateFrontendBaseAction(CI); [all...] |
/external/clang/include/clang/StaticAnalyzer/Frontend/ |
H A D | FrontendActions.h | 25 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
|
/external/clang/test/Sema/ |
H A D | c89.c | 102 typedef const int CI; typedef 104 const CI mine1[5][5]; /* expected-warning {{duplicate 'const' declaration specifier}} */ 106 typedef CI array_of_CI[5]; 109 typedef CI *array_of_pointer_to_CI[5];
|
/external/llvm/include/llvm/ |
H A D | AutoUpgrade.h | 31 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
|