Searched defs:CI (Results 51 - 75 of 144) sorted by relevance

123456

/external/llvm/lib/CodeGen/
H A DAtomicExpandLoadLinkedPass.cpp46 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 DGCStrategy.cpp235 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 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
551 LowerToByteSwap(CallInst *CI) argument
[all...]
H A DAnalysis.cpp132 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 DShadowStackGC.cpp135 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 DAArch64PromoteConstant.cpp287 const CallInst *CI = dyn_cast<const CallInst>(Instr); local
288 if (CI && isa<const InlineAsm>(CI->getCalledValue()))
/external/llvm/lib/Target/PowerPC/
H A DPPCCTRLoops.cpp200 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 DStripSymbols.cpp252 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 DObjCARC.h204 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 DObjCARCContract.cpp407 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 DFlattenCFG.cpp181 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 DBuildLibCalls.cpp55 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 DLoopSimplify.cpp644 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 DExtractFunction.cpp246 ConstantInt *CI = dyn_cast<ConstantInt>(CS->getOperand(0)); local
247 int Priority = CI ? CI->getSExtValue() : 0;
/external/clang/lib/ARCMigrate/
H A DARCMT.cpp449 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 DCGDeclCXX.cpp511 llvm::CallInst *CI = Builder.CreateCall(Callee, local
515 CI->setCallingConv(F->getCallingConv());
/external/clang/lib/StaticAnalyzer/Checkers/
H A DStreamChecker.cpp265 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 Dderived-to-base.cpp77 class CI : public virtual Intermediate { class in namespace:VirtualBaseClasses
82 class DI : public BI, public CI {};
/external/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp243 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 DCostModel.cpp247 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 DAutoUpgrade.cpp239 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 DValue.cpp527 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 DMipsFastISel.cpp361 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 DInstCombineLoadStoreAlloca.cpp297 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 DInstCombineShifts.cpp83 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...]

Completed in 3443 milliseconds

123456