Home
last modified time | relevance | path

Searched refs:BCI (Results 1 – 25 of 57) sorted by relevance

123

/external/swiftshader/third_party/LLVM/lib/Analysis/
DMemoryBuiltins.cpp70 static bool isBitCastOfMallocCall(const BitCastInst *BCI) { in isBitCastOfMallocCall() argument
71 if (!BCI) in isBitCastOfMallocCall()
74 return isMallocCall(dyn_cast<CallInst>(BCI->getOperand(0))); in isBitCastOfMallocCall()
80 BitCastInst *BCI = dyn_cast<BitCastInst>(I); in extractMallocCallFromBitCast() local
81 return (isBitCastOfMallocCall(BCI)) ? cast<CallInst>(BCI->getOperand(0)) in extractMallocCallFromBitCast()
86 const BitCastInst *BCI = dyn_cast<BitCastInst>(I); in extractMallocCallFromBitCast() local
87 return (isBitCastOfMallocCall(BCI)) ? cast<CallInst>(BCI->getOperand(0)) in extractMallocCallFromBitCast()
145 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) { in getMallocType() local
146 MallocType = cast<PointerType>(BCI->getDestTy()); in getMallocType()
/external/libcxx/test/std/containers/sequences/deque/deque.modifiers/
Dinsert_iter_iter.pass.cpp55 typedef input_iterator<CI> BCI; in test() typedef
58 CI i = c1.insert(c1.begin() + P, BCI(c2.begin()), BCI(c2.end())); in test()
72 typedef forward_iterator<CI> BCI; in test() typedef
75 CI i = c1.insert(c1.begin() + P, BCI(c2.begin()), BCI(c2.end())); in test()
89 typedef bidirectional_iterator<CI> BCI; in test() typedef
92 CI i = c1.insert(c1.begin() + P, BCI(c2.begin()), BCI(c2.end())); in test()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelAttributes.cpp105 auto *BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse() local
106 if (!BCI || !BCI->hasOneUse()) in processUse()
109 auto *Load = dyn_cast<LoadInst>(*BCI->user_begin()); in processUse()
DAMDGPURewriteOutArguments.cpp146 auto *BCI = dyn_cast<BitCastInst>(U.getUser()); in checkArgumentUses() local
147 if (!BCI || !BCI->hasOneUse()) in checkArgumentUses()
152 Type *DestEltTy = BCI->getType()->getPointerElementType(); in checkArgumentUses()
175 return checkArgumentUses(*BCI); in checkArgumentUses()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp175 bool visitBitCastInst(BitCastInst &BCI);
608 bool Scalarizer::visitBitCastInst(BitCastInst &BCI) { in visitBitCastInst() argument
609 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy()); in visitBitCastInst()
610 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy()); in visitBitCastInst()
616 IRBuilder<> Builder(&BCI); in visitBitCastInst()
617 Scatterer Op0 = scatter(&BCI, BCI.getOperand(0)); in visitBitCastInst()
624 BCI.getName() + ".i" + Twine(I)); in visitBitCastInst()
640 Scatterer Mid = scatter(&BCI, V); in visitBitCastInst()
653 BCI.getName() + ".i" + Twine(ResI) in visitBitCastInst()
656 BCI.getName() + ".i" + Twine(ResI)); in visitBitCastInst()
[all …]
DCallSiteSplitting.cpp244 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn() local
245 if (BCI) in copyMustTailReturn()
253 if (BCI) in copyMustTailReturn()
254 V = cloneInstForMustTail(BCI, TI, V); in copyMustTailReturn()
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp490 bool Scalarizer::visitBitCastInst(BitCastInst &BCI) { in visitBitCastInst() argument
491 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy()); in visitBitCastInst()
492 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy()); in visitBitCastInst()
498 IRBuilder<> Builder(&BCI); in visitBitCastInst()
499 Scatterer Op0 = scatter(&BCI, BCI.getOperand(0)); in visitBitCastInst()
506 BCI.getName() + ".i" + Twine(I)); in visitBitCastInst()
522 Scatterer Mid = scatter(&BCI, V); in visitBitCastInst()
535 BCI.getName() + ".i" + Twine(ResI) in visitBitCastInst()
538 BCI.getName() + ".i" + Twine(ResI)); in visitBitCastInst()
541 gather(&BCI, Res); in visitBitCastInst()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DIRBuilder.cpp49 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/Target/NVPTX/
DNVPTXFavorNonGenericAddrSpaces.cpp206 if (BitCastInst *BCI = dyn_cast<BitCastInst>(BC)) { in hoistAddrSpaceCastFromBitCast() local
207 Value *NewCast = new BitCastInst(Src, TypeOfNewCast, "", BCI); in hoistAddrSpaceCastFromBitCast()
208 NewBC = new AddrSpaceCastInst(NewCast, BC->getType(), "", BCI); in hoistAddrSpaceCastFromBitCast()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp1041 if (BitCastInst *BCI = dyn_cast<BitCastInst>(PtrOp)) { in visitGetElementPtrInst() local
1043 !isa<BitCastInst>(BCI->getOperand(0)) && GEP.hasAllConstantIndices() && in visitGetElementPtrInst()
1056 if (isa<AllocaInst>(BCI->getOperand(0)) || in visitGetElementPtrInst()
1057 isMalloc(BCI->getOperand(0))) { in visitGetElementPtrInst()
1059 if (Instruction *I = visitBitCast(*BCI)) { in visitGetElementPtrInst()
1060 if (I != BCI) { in visitGetElementPtrInst()
1061 I->takeName(BCI); in visitGetElementPtrInst()
1062 BCI->getParent()->getInstList().insert(BCI, I); in visitGetElementPtrInst()
1063 ReplaceInstUsesWith(*BCI, I); in visitGetElementPtrInst()
1068 return new BitCastInst(BCI->getOperand(0), GEP.getType()); in visitGetElementPtrInst()
[all …]
DInstCombineVectorOps.cpp177 if (BitCastInst *BCI = dyn_cast<BitCastInst>(EI.getOperand(0))) { in visitExtractElementInst() local
179 dyn_cast<VectorType>(BCI->getOperand(0)->getType())) in visitExtractElementInst()
181 if (Value *Elt = FindScalarElement(BCI->getOperand(0), IndexVal)) in visitExtractElementInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DEntryExitInstrumenter.cpp100 if (BitCastInst *BCI = dyn_cast_or_null<BitCastInst>(Prev)) in runOnFunction() local
101 Prev = BCI->getPrevNode(); in runOnFunction()
DBypassSlowDivision.cpp395 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem() local
396 if (BCI->getParent() == SlowDivOrRem->getParent() && in insertFastDivAndRem()
397 isa<ConstantInt>(BCI->getOperand(0))) in insertFastDivAndRem()
DBasicBlockUtils.cpp659 if (BitCastInst *BCI = dyn_cast<BitCastInst>(V)) { in FoldReturnIntoUncondBranch() local
662 V = BCI->getOperand(0); in FoldReturnIntoUncondBranch()
663 NewBC = BCI->clone(); in FoldReturnIntoUncondBranch()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp441 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in CanConvertToScalar() local
442 if (!onlyUsedByLifetimeMarkers(BCI)) in CanConvertToScalar()
444 if (!CanConvertToScalar(BCI, Offset)) in CanConvertToScalar()
1179 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in tryToMakeAllocaBePromotable() local
1180 if (onlyUsedByLifetimeMarkers(BCI)) { in tryToMakeAllocaBePromotable()
1181 InstsToRewrite.insert(BCI); in tryToMakeAllocaBePromotable()
1197 if (BitCastInst *BCI = dyn_cast<BitCastInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable() local
1199 for (BitCastInst::use_iterator I = BCI->use_begin(), E = BCI->use_end(); in tryToMakeAllocaBePromotable()
1205 BCI->eraseFromParent(); in tryToMakeAllocaBePromotable()
1860 BitCastInst *BCI = new BitCastInst(NewAI, AI->getType(), "", NewAI); in RewriteForScalarRepl() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/
DCoroEarly.cpp99 auto *BCI = Builder.CreateBitCast(Operand, FramePtrTy); in lowerCoroDone() local
100 auto *Gep = Builder.CreateConstInBoundsGEP1_32(FrameTy, BCI, 0); in lowerCoroDone()
/external/llvm/lib/IR/
DIRBuilder.cpp53 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue() local
54 BB->getInstList().insert(InsertPt, BCI); in getCastedInt8PtrValue()
55 SetInstDebugLocation(BCI); in getCastedInt8PtrValue()
56 return BCI; in getCastedInt8PtrValue()
/external/llvm/lib/CodeGen/
DStackColoring.cpp826 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions() local
827 if (BCI->isUsedByMetadata()) in remapInstructions()
828 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType())); in remapInstructions()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DStackColoring.cpp951 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions() local
952 if (BCI->isUsedByMetadata()) in remapInstructions()
953 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType())); in remapInstructions()
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp367 if (auto *BCI = dyn_cast<BitCastInst>(Ptr)) { in getInvariantGroupPointerDependency() local
368 if (Seen.insert(BCI->getOperand(0)).second) { in getInvariantGroupPointerDependency()
369 LoadOperandsQueue.push_back(BCI->getOperand(0)); in getInvariantGroupPointerDependency()
378 if (auto *BCI = dyn_cast<BitCastInst>(U)) { in getInvariantGroupPointerDependency() local
379 if (Seen.insert(BCI).second) { in getInvariantGroupPointerDependency()
380 LoadOperandsQueue.push_back(BCI); in getInvariantGroupPointerDependency()
/external/llvm/test/Transforms/InstCombine/
Dtype_pun.ll90 ; CHECK-NEXT: %[[BCI:.*]] = bitcast <16 x i8> %in to <4 x i32>
91 ; CHECK-NEXT: %[[EXTI:.*]] = extractelement <4 x i32> %[[BCI]], i32 0
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp817 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc() local
818 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfMalloc()
819 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfMalloc()
820 BCI->eraseFromParent(); in OptimizeGlobalAddressOfMalloc()
822 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfMalloc()
950 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal() local
951 if (!ValueIsOnlyUsedLocallyOrStoredToOneGlobal(BCI, GV, PHIs)) in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
1501 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in tryToOptimizeStoreOfMallocToGlobal() local
1502 CI = cast<CallInst>(BCI->getOperand(0)); in tryToOptimizeStoreOfMallocToGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DIRBuilder.cpp68 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue() local
69 BB->getInstList().insert(InsertPt, BCI); in getCastedInt8PtrValue()
70 SetInstDebugLocation(BCI); in getCastedInt8PtrValue()
71 return BCI; in getCastedInt8PtrValue()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp74 } else if (const BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in isAllocaPromotable() local
75 if (BCI->getType() != Type::getInt8PtrTy(U->getContext(), AS)) in isAllocaPromotable()
77 if (!onlyUsedByLifetimeMarkers(BCI)) in isAllocaPromotable()
DBasicBlockUtils.cpp590 if (BitCastInst *BCI = dyn_cast<BitCastInst>(V)) { in FoldReturnIntoUncondBranch() local
593 V = BCI->getOperand(0); in FoldReturnIntoUncondBranch()
594 NewBC = BCI->clone(); in FoldReturnIntoUncondBranch()

123