/macosx-10.10.1/llvmCore-3425.0.34/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);
|
/macosx-10.10.1/llvmCore-3425.0.34/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...] |
H A D | GCStrategy.cpp | 243 if (CallInst *CI = dyn_cast<CallInst>(I)) 244 if (Function *F = CI->getCalledFunction()) 290 if (IntrinsicInst *CI = dyn_cast<IntrinsicInst>(II++)) { 291 Function *F = CI->getCalledFunction(); 296 Value *St = new StoreInst(CI->getArgOperand(0), 297 CI->getArgOperand(2), CI); 298 CI->replaceAllUsesWith(St); 299 CI->eraseFromParent(); 305 Value *Ld = new LoadInst(CI 360 VisitCallPoint(MachineBasicBlock::iterator CI) argument [all...] |
H A D | ShadowStackGC.cpp | 134 if (CallInst *CI = dyn_cast<CallInst>(II)) 135 if (!CI->getCalledFunction() || 136 !CI->getCalledFunction()->getIntrinsicID()) 137 Calls.push_back(CI); 161 CallInst *CI = cast<CallInst>(Calls[--I]); local 164 BasicBlock *CallBB = CI->getParent(); 166 CallBB->splitBasicBlock(CI, CallBB->getName() + ".cont"); 170 NewBB->getInstList().remove(CI); 174 CallSite CS(CI); 177 InvokeInst *II = InvokeInst::Create(CI [all...] |
H A D | MachineCopyPropagation.cpp | 147 DenseMap<unsigned, MachineInstr*>::iterator CI = AvailCopyMap.find(Src); local 148 if (CI != AvailCopyMap.end()) { 149 MachineInstr *CopyMI = CI->second; 181 CI = CopyMap.find(*AI); 182 if (CI != CopyMap.end()) 183 MaybeDeadCopies.remove(CI->second); 246 DenseMap<unsigned, MachineInstr*>::iterator CI = CopyMap.find(*AI); local 247 if (CI != CopyMap.end()) 248 MaybeDeadCopies.remove(CI->second);
|
/macosx-10.10.1/CPANInternal-159.1/String-ShellQuote-1.04/ |
H A D | Makefile.PL | 19 CI => 'cvs commit',
|
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/CodeGen/ |
H A D | IntrinsicLowering.h | 50 void LowerIntrinsicCall(CallInst *CI); 55 static bool LowerToByteSwap(CallInst *CI);
|
/macosx-10.10.1/llvmCore-3425.0.34/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...] |
H A D | CodeGenPrepare.cpp | 126 bool OptimizeCallInst(CallInst *CI); 244 if (CallInst *CI = dyn_cast<CallInst>(I)) { 245 Value *Callee = CI->getCalledValue(); 253 Type *Ty = CI->getType(); 255 CI->replaceAllUsesWith(UndefValue::get(Ty)); 256 DeadInsts.push_back(CI); 269 if (CallInst *CI = dyn_cast<CallInst>(&*II)) { 270 Value *Callee = CI->getCalledValue(); 273 DeadInsts.push_back(CI); 532 static bool OptimizeNoopCopyExpression(CastInst *CI, cons argument 614 OptimizeCmpExpression(CmpInst *CI) argument 679 OptimizeCallInst(CallInst *CI) argument 828 CallInst *CI = dyn_cast<CallInst>(PN->getIncomingValue(I)); local 847 CallInst *CI = dyn_cast<CallInst>(&*RI); local 855 CallInst *CI = TailCalls[i]; local [all...] |
H A D | CorrelatedValuePropagation.cpp | 76 ConstantInt *CI = dyn_cast<ConstantInt>(C); 77 if (!CI) return false; 81 if (!CI->isOne()) std::swap(ReplaceWith, Other); 202 for (SwitchInst::CaseIt CI = SI->case_end(), CE = SI->case_begin(); CI-- != CE; 204 ConstantInt *Case = CI.getCaseValue(); 236 CI.getCaseSuccessor()->removePredecessor(BB); 237 SI->removeCase(CI); // Does not invalidate the iterator.
|
/macosx-10.10.1/llvmCore-3425.0.34/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...] |
H A D | AddrModeMatcher.cpp | 102 ConstantInt *CI = 0; Value *AddLHS = 0; local 104 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { 106 TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale; 234 if (ConstantInt *CI = dyn_cast<ConstantInt>(AddrInst->getOperand(i))) { 235 ConstantOffset += CI->getSExtValue()*TypeSize; 313 if (ConstantInt *CI = dyn_cast<ConstantInt>(Addr)) { 315 AddrMode.BaseOffs += CI->getSExtValue(); 318 AddrMode.BaseOffs -= CI->getSExtValue(); 383 static bool IsOperandAMemoryOperand(CallInst *CI, InlineAsm *IA, Value *OpVal, argument 385 TargetLowering::AsmOperandInfoVector TargetConstraints = TLI.ParseConstraints(ImmutableCallSite(CI)); [all...] |
/macosx-10.10.1/llvmCore-3425.0.34/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...] |
H A D | InstCombine.h | 155 Instruction *FoldICmpAddOpCst(ICmpInst &ICI, Value *X, ConstantInt *CI, 161 Instruction *commonCastTransforms(CastInst &CI); 162 Instruction *commonPointerCastTransforms(CastInst &CI); 163 Instruction *visitTrunc(TruncInst &CI); 164 Instruction *visitZExt(ZExtInst &CI); 165 Instruction *visitSExt(SExtInst &CI); 166 Instruction *visitFPTrunc(FPTruncInst &CI); 167 Instruction *visitFPExt(CastInst &CI); 170 Instruction *visitUIToFP(CastInst &CI); 171 Instruction *visitSIToFP(CastInst &CI); [all...] |
H A D | InstCombineCalls.cpp | 193 Instruction *InstCombiner::visitCallInst(CallInst &CI) { argument 194 if (isFreeCall(&CI, TLI)) 195 return visitFree(CI); 199 if (CI.getParent()->getParent()->doesNotThrow() && 200 !CI.doesNotThrow()) { 201 CI.setDoesNotThrow(); 202 return &CI; 205 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&CI); 206 if (!II) return visitCallSite(&CI); 216 return EraseInstFromFunction(CI); 755 isSafeToEliminateVarargsCast(const CallSite CS, const CastInst * const CI, const TargetData * const TD, const int ix) argument 815 tryOptimizeCall(CallInst *CI, const TargetData *TD) argument 973 CastInst *CI = dyn_cast<CastInst>(*I); local 1212 CallInst *CI = cast<CallInst>(Caller); local [all...] |
H A D | InstCombineAddSub.cpp | 98 if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS)) { 100 const APInt &Val = CI->getValue(); 112 return SelectInst::Create(ZI->getOperand(0), AddOne(CI), CI); 117 const APInt &RHSVal = CI->getValue(); 148 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), 304 Constant *CI = local 307 ConstantExpr::getSExt(CI, I.getType()) == RHSC && 308 WillNotOverflowSignedAdd(LHSConv->getOperand(0), CI)) { 311 CI, "addcon 391 Constant *CI = local 530 Value *X; ConstantInt *CI; local 571 ConstantInt *CI = 0; local [all...] |
/macosx-10.10.1/llvmCore-3425.0.34/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...] |
H A D | IRBuilder.cpp | 57 CallInst *CI = CallInst::Create(Callee, Ops, ""); local 58 Builder->GetInsertBlock()->getInstList().insert(Builder->GetInsertPoint(),CI); 59 Builder->SetInstDebugLocation(CI); 60 return CI; 72 CallInst *CI = createCallHelper(TheFn, Ops, this); local 76 CI->setMetadata(LLVMContext::MD_tbaa, TBAATag); 78 return CI; 92 CallInst *CI = createCallHelper(TheFn, Ops, this); local 96 CI->setMetadata(LLVMContext::MD_tbaa, TBAATag); 100 CI 116 CallInst *CI = createCallHelper(TheFn, Ops, this); local [all...] |
H A D | Instruction.cpp | 204 if (const CmpInst *CI = dyn_cast<CmpInst>(this)) 205 return CI->getPredicate() == cast<CmpInst>(I)->getPredicate(); 206 if (const CallInst *CI = dyn_cast<CallInst>(this)) 207 return CI->isTailCall() == cast<CallInst>(I)->isTailCall() && 208 CI->getCallingConv() == cast<CallInst>(I)->getCallingConv() && 209 CI->getAttributes() == cast<CallInst>(I)->getAttributes(); 210 if (const InvokeInst *CI = dyn_cast<InvokeInst>(this)) 211 return CI->getCallingConv() == cast<InvokeInst>(I)->getCallingConv() && 212 CI->getAttributes() == cast<InvokeInst>(I)->getAttributes(); 277 if (const CmpInst *CI [all...] |
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/ |
H A D | AutoUpgrade.h | 31 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
|
/macosx-10.10.1/llvmCore-3425.0.34/lib/Analysis/ |
H A D | CodeMetrics.cpp | 84 if (const CastInst *CI = dyn_cast<CastInst>(I)) { 86 if (CI->isLosslessCast()) 89 Value *Op = CI->getOperand(0); 92 if (isa<IntToPtrInst>(CI) && TD && 99 if (isa<PtrToIntInst>(CI) && TD && 106 if (TD && isa<TruncInst>(CI) && 107 TD->isLegalInteger(TD->getTypeSizeInBits(CI->getType()))) 112 if (isa<CmpInst>(CI->getOperand(0)))
|
/macosx-10.10.1/llvmCore-3425.0.34/utils/TableGen/ |
H A D | AsmMatcherEmitter.cpp | 577 ClassInfo *CI; member in struct:__anon10596::OperandMatchEntry 583 X.CI = ci; 1012 if (ClassInfo *CI = AsmOperandClasses[MatchClass]) 1013 return CI; 1021 if (ClassInfo *CI = RegisterClassClasses[ClassRec]) 1022 return CI; 1028 if (ClassInfo *CI = RegisterClassClasses[Rec]) 1029 return CI; 1037 if (ClassInfo *CI = AsmOperandClasses[MatchClass]) 1038 return CI; 1104 ClassInfo *CI = new ClassInfo(); local 1122 ClassInfo *CI = RegisterSetClasses[*it]; local 1138 ClassInfo *CI = RegisterSetClasses[std::set<Record*>(RC.getOrder().begin(), local 1159 ClassInfo *CI = RegisterClasses[Rec]; local 1183 ClassInfo *CI = AsmOperandClasses[*it]; local 1275 ClassInfo *CI = iit->first; local [all...] |
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/Support/ |
H A D | CallSite.h | 52 CallSiteBase(CallTy *CI) : I(CI, true) { assert(CI); } argument 289 CallSite(CallInst *CI) : Base(CI) {} argument 308 ImmutableCallSite(const CallInst *CI) : Base(CI) {} argument
|