/external/llvm/lib/CodeGen/ |
H A D | AtomicExpandLoadLinkedPass.cpp | 46 bool expandAtomicCmpXchg(AtomicCmpXchgInst *CI); 86 else if (AtomicCmpXchgInst *CI = dyn_cast<AtomicCmpXchgInst>(Inst)) 87 MadeChange |= expandAtomicCmpXchg(CI); 233 bool AtomicExpandLoadLinked::expandAtomicCmpXchg(AtomicCmpXchgInst *CI) { argument 234 AtomicOrdering SuccessOrder = CI->getSuccessOrdering(); 235 AtomicOrdering FailureOrder = CI->getFailureOrdering(); 236 Value *Addr = CI->getPointerOperand(); 237 BasicBlock *BB = CI->getParent(); 266 BasicBlock *ExitBB = BB->splitBasicBlock(CI, "cmpxchg.end"); 272 // This grabs the DebugLoc from CI [all...] |
H A D | GCStrategy.cpp | 235 if (CallInst *CI = dyn_cast<CallInst>(I)) 236 if (Function *F = CI->getCalledFunction()) 283 if (IntrinsicInst *CI = dyn_cast<IntrinsicInst>(II++)) { 284 Function *F = CI->getCalledFunction(); 289 Value *St = new StoreInst(CI->getArgOperand(0), 290 CI->getArgOperand(2), CI); 291 CI->replaceAllUsesWith(St); 292 CI->eraseFromParent(); 298 Value *Ld = new LoadInst(CI 353 VisitCallPoint(MachineBasicBlock::iterator CI) argument [all...] |
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 551 LowerToByteSwap(CallInst *CI) argument [all...] |
H A D | Analysis.cpp | 132 InlineAsm::ConstraintInfo &CI = CInfos[i]; local 133 for (unsigned j = 0, ee = CI.Codes.size(); j != ee; ++j) { 134 TargetLowering::ConstraintType CType = TLI.getConstraintType(CI.Codes[j]); 140 if (CI.isIndirect)
|
H A D | ShadowStackGC.cpp | 135 if (CallInst *CI = dyn_cast<CallInst>(II)) 136 if (!CI->getCalledFunction() || 137 !CI->getCalledFunction()->getIntrinsicID()) 138 Calls.push_back(CI); 162 CallInst *CI = cast<CallInst>(Calls[--I]); local 165 BasicBlock *CallBB = CI->getParent(); 167 CallBB->splitBasicBlock(CI, CallBB->getName() + ".cont"); 171 NewBB->getInstList().remove(CI); 175 CallSite CS(CI); 178 InvokeInst *II = InvokeInst::Create(CI [all...] |
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64PromoteConstant.cpp | 287 const CallInst *CI = dyn_cast<const CallInst>(Instr); local 288 if (CI && isa<const InlineAsm>(CI->getCalledValue()))
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCCTRLoops.cpp | 200 if (CallInst *CI = dyn_cast<CallInst>(J)) { 201 if (InlineAsm *IA = dyn_cast<InlineAsm>(CI->getCalledValue())) { 219 if (Function *F = CI->getCalledFunction()) { 265 if (CI->getArgOperand(0)->getType()->getScalarType()-> 290 if (!CI->onlyReadsMemory()) 294 if (!CI->getArgOperand(0)->getType()->isFloatingPointTy()) 339 TLI->getSimpleValueType(CI->getArgOperand(0)->getType(), true); 360 CastInst *CI = cast<CastInst>(J); local 361 if (CI->getSrcTy()->getScalarType()->isPPC_FP128Ty() || 362 CI [all...] |
/external/llvm/lib/Transforms/IPO/ |
H A D | StripSymbols.cpp | 252 CallInst *CI = cast<CallInst>(Declare->user_back()); local 253 Value *Arg1 = CI->getArgOperand(0); 254 Value *Arg2 = CI->getArgOperand(1); 255 assert(CI->use_empty() && "llvm.dbg intrinsic should have void result"); 256 CI->eraseFromParent();
|
/external/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARC.h | 204 if (const CallInst *CI = dyn_cast<CallInst>(V)) { 205 if (const Function *F = CI->getCalledFunction()) 282 static inline void EraseInstruction(Instruction *CI) { argument 283 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); 285 bool Unused = CI->use_empty(); 289 assert((IsForwarding(GetBasicInstructionClass(CI)) || 290 (IsNoopOnNull(GetBasicInstructionClass(CI)) && 293 CI->replaceAllUsesWith(OldArg); 296 CI->eraseFromParent();
|
H A D | ObjCARCContract.cpp | 407 CallInst *CI = cast<CallInst>(Inst); local 408 if (IsNullOrUndef(CI->getArgOperand(1))) { 410 ConstantPointerNull::get(cast<PointerType>(CI->getType())); 412 new StoreInst(Null, CI->getArgOperand(0), CI); 414 DEBUG(dbgs() << "OBJCARCContract: Old = " << *CI << "\n" 417 CI->replaceAllUsesWith(Null); 418 CI->eraseFromParent();
|
/external/llvm/lib/Transforms/Utils/ |
H A D | FlattenCFG.cpp | 181 Instruction *CI = BI++; local 182 if (isa<PHINode>(CI) || !isSafeToSpeculativelyExecute(CI)) 243 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); local 244 CmpInst::Predicate Predicate = CI->getPredicate(); 247 CI->setPredicate(ICmpInst::getInversePredicate(Predicate)); 428 Instruction *CI = BI; local 429 if (isa<PHINode>(CI) || CI->mayHaveSideEffects() || 430 !isSafeToSpeculativelyExecute(CI)) [all...] |
H A D | BuildLibCalls.cpp | 55 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); local 57 CI->setCallingConv(F->getCallingConv()); 59 return CI; 85 CallInst *CI = B.CreateCall2(StrNLen, CastToCStr(Ptr, B), MaxLen, "strnlen"); local 87 CI->setCallingConv(F->getCallingConv()); 89 return CI; 112 CallInst *CI = B.CreateCall2(StrChr, CastToCStr(Ptr, B), local 115 CI->setCallingConv(F->getCallingConv()); 116 return CI; 142 CallInst *CI local 168 CallInst *CI = B.CreateCall2(StrCpy, CastToCStr(Dst, B), CastToCStr(Src, B), local 194 CallInst *CI = B.CreateCall3(StrNCpy, CastToCStr(Dst, B), CastToCStr(Src, B), local 224 CallInst *CI = B.CreateCall4(MemCpy, Dst, Src, Len, ObjSize); local 251 CallInst *CI = B.CreateCall3(MemChr, CastToCStr(Ptr, B), Val, Len, "memchr"); local 281 CallInst *CI = B.CreateCall3(MemCmp, CastToCStr(Ptr1, B), CastToCStr(Ptr2, B), local 317 CallInst *CI = B.CreateCall(Callee, Op, Name); local 338 CallInst *CI = B.CreateCall2(Callee, Op1, Op2, Name); local 356 CallInst *CI = B.CreateCall(PutChar, local 386 CallInst *CI = B.CreateCall(PutS, CastToCStr(Str, B), "puts"); local 418 CallInst *CI = B.CreateCall2(F, Char, File, "fputc"); local 450 CallInst *CI = B.CreateCall2(F, CastToCStr(Str, B), File, "fputs"); local 488 CallInst *CI = B.CreateCall4(F, CastToCStr(Ptr, B), Size, local 498 fold(CallInst *CI, const DataLayout *TD, const TargetLibraryInfo *TLI) argument [all...] |
H A D | LoopSimplify.cpp | 644 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); local 645 if (!CI || CI->getParent() != ExitingBlock) continue; 656 if (Inst == CI)
|
/external/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 246 ConstantInt *CI = dyn_cast<ConstantInt>(CS->getOperand(0)); local 247 int Priority = CI ? CI->getSExtValue() : 0;
|
/external/clang/lib/ARCMigrate/ |
H A D | ARCMT.cpp | 449 ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 451 CI.getPreprocessor().addPPCallbacks( 502 MigrationProcess::MigrationProcess(const CompilerInvocation &CI, argument 505 : OrigCI(CI), DiagClient(diagClient), HadARCErrors(false) { 509 new DiagnosticsEngine(DiagID, &CI.getDiagnosticOpts(),
|
/external/clang/lib/CodeGen/ |
H A D | CGDeclCXX.cpp | 511 llvm::CallInst *CI = Builder.CreateCall(Callee, local 515 CI->setCallingConv(F->getCallingConv());
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | StreamChecker.cpp | 265 Optional<nonloc::ConcreteInt> CI = Whence.getAs<nonloc::ConcreteInt>(); local 267 if (!CI) 270 int64_t x = CI->getValue().getSExtValue();
|
/external/clang/test/Analysis/ |
H A D | derived-to-base.cpp | 77 class CI : public virtual Intermediate { class in namespace:VirtualBaseClasses 82 class DI : public BI, public CI {};
|
/external/llvm/lib/Analysis/ |
H A D | BranchProbabilityInfo.cpp | 243 if (CallInst *CI = dyn_cast<CallInst>(I)) 244 if (CI->hasFnAttr(Attribute::Cold)) { 281 ICmpInst *CI = dyn_cast<ICmpInst>(Cond); local 282 if (!CI || !CI->isEquality()) 285 Value *LHS = CI->getOperand(0); 290 assert(CI->getOperand(1)->getType()->isPointerTy()); 297 bool isProb = CI->getPredicate() == ICmpInst::ICMP_NE; 371 ICmpInst *CI = dyn_cast<ICmpInst>(Cond); local 372 if (!CI) [all...] |
H A D | CostModel.cpp | 247 ConstantInt *CI = dyn_cast<ConstantInt>(ReduxRoot->getOperand(1)); 249 if (CI) 250 Idx = CI->getZExtValue(); 310 ConstantInt *CI = dyn_cast<ConstantInt>(ReduxRoot->getOperand(1)); 312 if (CI) 313 Idx = CI->getZExtValue(); 461 ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1)); local 463 if (CI) 464 Idx = CI->getZExtValue(); 481 ConstantInt *CI local [all...] |
/external/llvm/lib/IR/ |
H A D | AutoUpgrade.cpp | 239 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { argument 240 Function *F = CI->getCalledFunction(); 241 LLVMContext &C = CI->getContext(); 243 Builder.SetInsertPoint(CI->getParent(), CI); 255 Rep = Builder.CreateICmpEQ(CI->getArgOperand(0), CI->getArgOperand(1), 258 Rep = Builder.CreateSExt(Rep, CI->getType(), ""); 261 Rep = Builder.CreateICmpSGT(CI->getArgOperand(0), CI [all...] |
H A D | Value.cpp | 527 ConstantInt *CI = dyn_cast<ConstantInt>(Index); local 528 if (!CI) 531 if (CI->isZero()) 537 if (CI->getValue().getActiveBits() > 64) 539 if (CI->getZExtValue() >= ATy->getNumElements())
|
/external/llvm/lib/Target/Mips/ |
H A D | MipsFastISel.cpp | 361 const ConstantInt *CI = cast<ConstantInt>(C); local 363 if (CI->isNegative()) 364 Imm = CI->getSExtValue(); 366 Imm = CI->getZExtValue();
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 297 User *CI = cast<User>(LI.getOperand(0)); local 298 Value *CastOp = CI->getOperand(0); 300 PointerType *DestTy = cast<PointerType>(CI->getType()); 342 IC.Builder->CreateLoad(CastOp, LI.isVolatile(), CI->getName()); 473 User *CI = cast<User>(SI.getOperand(1)); local 474 Value *CastOp = CI->getOperand(0); 476 Type *DestPTy = cast<PointerType>(CI->getType())->getElementType(); 522 cast<PointerType>(CI->getType())->getAddressSpace())
|
H A D | InstCombineShifts.cpp | 83 ConstantInt *CI = nullptr; 84 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || 85 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { 86 if (CI->getZExtValue() == NumBits) { 96 CI->getLimitedValue(BitWidth) < BitWidth) { 119 CI = dyn_cast<ConstantInt>(I->getOperand(1)); 120 if (!CI) return false; 126 if (CI->getValue() == NumBits) return true; 132 if (CI->getZExtValue() > NumBits) { 133 unsigned LowBits = TypeWidth - CI 218 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); local 259 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); local [all...] |