/external/llvm/lib/CodeGen/ |
D | MachineBlockPlacement.cpp | 817 for (BlockChain::iterator BCI = Chain.begin(), BCE = Chain.end(); in buildLoopChains() local 818 BCI != BCE; ++BCI) { in buildLoopChains() 819 assert(BlockToChain[*BCI] == &Chain); in buildLoopChains() 820 for (MachineBasicBlock::pred_iterator PI = (*BCI)->pred_begin(), in buildLoopChains() 821 PE = (*BCI)->pred_end(); in buildLoopChains() 845 for (BlockChain::iterator BCI = LoopChain.begin(), BCE = LoopChain.end(); in buildLoopChains() 846 BCI != BCE; ++BCI) { in buildLoopChains() 847 dbgs() << " ... " << getBlockName(*BCI) << "\n"; in buildLoopChains() 848 if (!LoopBlockSet.erase(*BCI)) { in buildLoopChains() 855 << " Bad block: " << getBlockName(*BCI) << "\n"; in buildLoopChains() [all …]
|
/external/llvm/lib/VMCore/ |
D | IRBuilder.cpp | 49 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue() local 50 BB->getInstList().insert(InsertPt, BCI); in getCastedInt8PtrValue() 51 SetInstDebugLocation(BCI); in getCastedInt8PtrValue() 52 return BCI; in getCastedInt8PtrValue()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1056 if (BitCastInst *BCI = dyn_cast<BitCastInst>(PtrOp)) { in visitGetElementPtrInst() local 1058 !isa<BitCastInst>(BCI->getOperand(0)) && GEP.hasAllConstantIndices() && in visitGetElementPtrInst() 1070 if (isa<AllocaInst>(BCI->getOperand(0)) || in visitGetElementPtrInst() 1071 isAllocationFn(BCI->getOperand(0), TLI)) { in visitGetElementPtrInst() 1073 if (Instruction *I = visitBitCast(*BCI)) { in visitGetElementPtrInst() 1074 if (I != BCI) { in visitGetElementPtrInst() 1075 I->takeName(BCI); in visitGetElementPtrInst() 1076 BCI->getParent()->getInstList().insert(BCI, I); in visitGetElementPtrInst() 1077 ReplaceInstUsesWith(*BCI, I); in visitGetElementPtrInst() 1082 return new BitCastInst(BCI->getOperand(0), GEP.getType()); in visitGetElementPtrInst() [all …]
|
D | InstCombineVectorOps.cpp | 137 if (BitCastInst *BCI = dyn_cast<BitCastInst>(EI.getOperand(0))) { in visitExtractElementInst() local 138 if (VectorType *VT = dyn_cast<VectorType>(BCI->getOperand(0)->getType())) in visitExtractElementInst() 140 if (Value *Elt = FindScalarElement(BCI->getOperand(0), IndexVal)) in visitExtractElementInst()
|
D | InstCombineLoadStoreAlloca.cpp | 63 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in isOnlyCopiedFromConstantGlobal() local 65 if (!isOnlyCopiedFromConstantGlobal(BCI, TheCopy, ToDelete, IsOffset)) in isOnlyCopiedFromConstantGlobal()
|
D | InstCombineCalls.cpp | 697 if (CallInst *BCI = dyn_cast<CallInst>(BI)) { in visitCallInst() local 698 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(BCI)) { in visitCallInst()
|
D | InstCombineCompares.cpp | 584 if (BitCastInst *BCI = dyn_cast<BitCastInst>(RHS)) in FoldGEPICmp() local 585 RHS = BCI->getOperand(0); in FoldGEPICmp()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 495 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in CanConvertToScalar() local 496 if (!onlyUsedByLifetimeMarkers(BCI)) in CanConvertToScalar() 498 if (!CanConvertToScalar(BCI, Offset, NonConstantIdx)) in CanConvertToScalar() 1295 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in tryToMakeAllocaBePromotable() local 1296 if (onlyUsedByLifetimeMarkers(BCI)) { in tryToMakeAllocaBePromotable() 1297 InstsToRewrite.insert(BCI); in tryToMakeAllocaBePromotable() 1313 if (BitCastInst *BCI = dyn_cast<BitCastInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable() local 1315 for (BitCastInst::use_iterator I = BCI->use_begin(), E = BCI->use_end(); in tryToMakeAllocaBePromotable() 1321 BCI->eraseFromParent(); in tryToMakeAllocaBePromotable() 1980 BitCastInst *BCI = new BitCastInst(NewAI, AI->getType(), "", NewAI); in RewriteForScalarRepl() local [all …]
|
D | CodeGenPrepare.cpp | 695 BitCastInst *BCI = 0; in DupRetToEnableTailCallOpts() local 698 BCI = dyn_cast<BitCastInst>(V); in DupRetToEnableTailCallOpts() 699 if (BCI) in DupRetToEnableTailCallOpts() 700 V = BCI->getOperand(0); in DupRetToEnableTailCallOpts() 723 if (&*BI == BCI) in DupRetToEnableTailCallOpts()
|
/external/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 665 if (BitCastInst *BCI = dyn_cast<BitCastInst>(V)) { in FoldReturnIntoUncondBranch() local 668 V = BCI->getOperand(0); in FoldReturnIntoUncondBranch() 669 NewBC = BCI->clone(); in FoldReturnIntoUncondBranch()
|
D | PromoteMemoryToRegister.cpp | 106 } else if (const BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in isAllocaPromotable() local 107 if (BCI->getType() != Type::getInt8PtrTy(U->getContext())) in isAllocaPromotable() 109 if (!onlyUsedByLifetimeMarkers(BCI)) in isAllocaPromotable()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FunctionLoweringInfo.cpp | 126 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Address)) in set() local 127 Address = BCI->getOperand(0); in set()
|
D | SelectionDAGBuilder.cpp | 4613 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Address)) in visitIntrinsicCall() local 4614 Address = BCI->getOperand(0); in visitIntrinsicCall() 4714 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(V)) in visitIntrinsicCall() local 4715 V = BCI->getOperand(0); in visitIntrinsicCall()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1047 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc() local 1048 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfMalloc() 1049 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfMalloc() 1050 BCI->eraseFromParent(); in OptimizeGlobalAddressOfMalloc() 1052 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfMalloc() 1183 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal() local 1184 if (!ValueIsOnlyUsedLocallyOrStoredToOneGlobal(BCI, GV, PHIs)) in ValueIsOnlyUsedLocallyOrStoredToOneGlobal() 1741 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in TryToOptimizeStoreOfMallocToGlobal() local 1742 CI = cast<CallInst>(BCI->getOperand(0)); in TryToOptimizeStoreOfMallocToGlobal()
|
/external/llvm/lib/Analysis/IPA/ |
D | GlobalsModRef.cpp | 263 } else if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in AnalyzeUsesOfPointer() local 264 if (AnalyzeUsesOfPointer(BCI, Readers, Writers, OkayStoreDest)) in AnalyzeUsesOfPointer()
|
/external/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 251 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) { in getMallocType() local 252 MallocType = cast<PointerType>(BCI->getDestTy()); in getMallocType()
|