Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/containers/sequences/deque/deque.modifiers/
H A Dinsert_iter_iter.pass.cpp54 typedef cpp17_input_iterator<CI> BCI; in test() typedef
57 CI i = c1.insert(c1.begin() + P, BCI(c2.begin()), BCI(c2.end())); in test()
71 typedef forward_iterator<CI> BCI; in test() typedef
74 CI i = c1.insert(c1.begin() + P, BCI(c2.begin()), BCI(c2.end())); in test()
88 typedef bidirectional_iterator<CI> BCI; in test() typedef
91 CI i = c1.insert(c1.begin() + P, BCI(c2.begin()), BCI(c2.end())); in test()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp95 auto *BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse() local
96 if (!BCI || !BCI->hasOneUse()) in processUse()
99 auto *Load = dyn_cast<LoadInst>(*BCI->user_begin()); in processUse()
H A DAMDGPURewriteOutArguments.cpp125 if (auto *BCI = dyn_cast<BitCastInst>(U->getUser())) { in getStoredType() local
126 for (Use &U : BCI->uses()) in getStoredType()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp220 bool visitBitCastInst(BitCastInst &BCI);
742 bool ScalarizerVisitor::visitBitCastInst(BitCastInst &BCI) { in visitBitCastInst() argument
743 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy()); in visitBitCastInst()
744 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy()); in visitBitCastInst()
750 IRBuilder<> Builder(&BCI); in visitBitCastInst()
751 Scatterer Op0 = scatter(&BCI, BCI.getOperand(0)); in visitBitCastInst()
758 BCI.getName() + ".i" + Twine(I)); in visitBitCastInst()
774 Scatterer Mid = scatter(&BCI, V); in visitBitCastInst()
787 BCI.getName() + ".i" + Twine(ResI) in visitBitCastInst()
790 BCI.getName() + ".i" + Twine(ResI)); in visitBitCastInst()
[all …]
H A DCallSiteSplitting.cpp246 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn() local
247 if (BCI) in copyMustTailReturn()
255 if (BCI) in copyMustTailReturn()
256 V = cloneInstForMustTail(BCI, TI, V); in copyMustTailReturn()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp717 BitCastInst *BCI = dyn_cast<BitCastInst>(V); in compute() local
718 if (BCI) in compute()
719 return computeFromBCI(BCI, Result, DL); in compute()
729 static bool computeFromBCI(BitCastInst *BCI, VectorInfo &Result, in computeFromBCI()
731 Instruction *Op = dyn_cast<Instruction>(BCI->getOperand(0)); in computeFromBCI()
767 Result.Is.insert(BCI); in computeFromBCI()
H A DStackColoring.cpp1000 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions() local
1001 if (BCI->isUsedByMetadata()) in remapInstructions()
1002 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType())); in remapInstructions()
H A DCodeGenPrepare.cpp2341 BitCastInst *BCI = nullptr; in dupRetToEnableTailCallOpts() local
2344 BCI = dyn_cast<BitCastInst>(V); in dupRetToEnableTailCallOpts()
2345 if (BCI) in dupRetToEnableTailCallOpts()
2346 V = BCI->getOperand(0); in dupRetToEnableTailCallOpts()
2377 while (isa<DbgInfoIntrinsic>(BI) || BI == BCI || BI == EVI || in dupRetToEnableTailCallOpts()
6944 if (auto *BCI = dyn_cast<Instruction>(BC1)) in optimizeShuffleVectorInst() local
6945 if (auto *Op = dyn_cast<Instruction>(BCI->getOperand(0))) in optimizeShuffleVectorInst()
6946 if (BCI->getParent() != Op->getParent() && !isa<PHINode>(Op) && in optimizeShuffleVectorInst()
6948 BCI->moveAfter(Op); in optimizeShuffleVectorInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroEarly.cpp95 auto *BCI = Builder.CreateBitCast(Operand, FramePtrTy); in lowerCoroDone() local
96 auto *Load = Builder.CreateLoad(FrameTy, BCI); in lowerCoroDone()
H A DCoroutines.cpp363 auto BCI = new BitCastInst(*SI, *RI, "", Suspend); in buildFrom() local
364 SI->set(BCI); in buildFrom()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp397 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem() local
398 if (BCI->getParent() == SlowDivOrRem->getParent() && in insertFastDivAndRem()
399 isa<ConstantInt>(BCI->getOperand(0))) in insertFastDivAndRem()
H A DPromoteMemoryToRegister.cpp82 } else if (const BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in isAllocaPromotable() local
83 if (!onlyUsedByLifetimeMarkersOrDroppableInsts(BCI)) in isAllocaPromotable()
H A DBasicBlockUtils.cpp1330 if (BitCastInst *BCI = dyn_cast<BitCastInst>(V)) { in FoldReturnIntoUncondBranch() local
1333 V = BCI->getOperand(0); in FoldReturnIntoUncondBranch()
1334 NewBC = BCI->clone(); in FoldReturnIntoUncondBranch()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp2575 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi() local
2577 if (!BCI) in optimizeBitCastFromPhi()
2581 Type *TyA = BCI->getOperand(0)->getType(); in optimizeBitCastFromPhi()
2582 Type *TyB = BCI->getType(); in optimizeBitCastFromPhi()
2597 Type *TyB = BCI->getOperand(0)->getType(); in optimizeBitCastFromPhi()
2598 Type *TyA = BCI->getType(); in optimizeBitCastFromPhi()
2639 NewV = BCI->getOperand(0); in optimizeBitCastFromPhi()
2670 else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi() local
2671 Type *TyB = BCI->getOperand(0)->getType(); in optimizeBitCastFromPhi()
2672 Type *TyA = BCI->getType(); in optimizeBitCastFromPhi()
[all …]
H A DInstructionCombining.cpp2160 Instruction *InstCombinerImpl::visitGEPOfBitcast(BitCastInst *BCI, in visitGEPOfBitcast() argument
2164 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy()); in visitGEPOfBitcast()
2170 Value *SrcOp = BCI->getOperand(0); in visitGEPOfBitcast()
2228 if (Instruction *I = visitBitCast(*BCI)) { in visitGEPOfBitcast()
2229 if (I != BCI) { in visitGEPOfBitcast()
2230 I->takeName(BCI); in visitGEPOfBitcast()
2231 BCI->getParent()->getInstList().insert(BCI->getIterator(), I); in visitGEPOfBitcast()
2232 replaceInstUsesWith(*BCI, I); in visitGEPOfBitcast()
2668 if (auto *BCI = dyn_cast<BitCastInst>(ASCStrippedPtrOp)) in visitGetElementPtrInst() local
2669 if (Instruction *I = visitGEPOfBitcast(BCI, GEP)) in visitGetElementPtrInst()
H A DInstCombineInternal.h152 Instruction *visitGEPOfBitcast(BitCastInst *BCI, GetElementPtrInst &GEP);
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp889 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfAllocation() local
890 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfAllocation()
891 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfAllocation()
892 BCI->eraseFromParent(); in OptimizeGlobalAddressOfAllocation()
894 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfAllocation()
1017 if (auto *BCI = dyn_cast<BitCastInst>(U)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal() local
1018 Worklist.push_back(BCI); in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp756 void visitBitCastInst(BitCastInst &BCI);
2549 void DFSanVisitor::visitBitCastInst(BitCastInst &BCI) { in visitBitCastInst() argument
2553 if (auto *CI = dyn_cast<CallInst>(BCI.getOperand(0))) in visitBitCastInst()
2556 visitInstOperands(BCI); in visitBitCastInst()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp6087 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Address)) in visitIntrinsicCall() local
6088 Address = BCI->getOperand(0); in visitIntrinsicCall()