Searched refs:BCI (Results 1 - 20 of 20) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp104 auto *BCI = dyn_cast<BitCastInst>(*U->user_begin()); local
105 if (!BCI || !BCI->hasOneUse())
108 auto *Load = dyn_cast<LoadInst>(*BCI->user_begin());
H A DAMDGPURewriteOutArguments.cpp146 auto *BCI = dyn_cast<BitCastInst>(U.getUser()); local
147 if (!BCI || !BCI->hasOneUse())
152 Type *DestEltTy = BCI->getType()->getPointerElementType();
175 return checkArgumentUses(*BCI);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEntryExitInstrumenter.cpp100 if (BitCastInst *BCI = dyn_cast_or_null<BitCastInst>(Prev))
101 Prev = BCI->getPrevNode();
H A DBypassSlowDivision.cpp394 if (auto *BCI = dyn_cast<BitCastInst>(Divisor))
395 if (BCI->getParent() == SlowDivOrRem->getParent() &&
396 isa<ConstantInt>(BCI->getOperand(0)))
H A DBasicBlockUtils.cpp896 if (BitCastInst *BCI = dyn_cast<BitCastInst>(V)) {
899 V = BCI->getOperand(0);
900 NewBC = BCI->clone();
H A DPromoteMemoryToRegister.cpp86 } else if (const BitCastInst *BCI = dyn_cast<BitCastInst>(U)) {
87 if (BCI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
89 if (!onlyUsedByLifetimeMarkers(BCI))
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp194 bool visitBitCastInst(BitCastInst &BCI);
682 bool ScalarizerVisitor::visitBitCastInst(BitCastInst &BCI) { argument
683 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy());
684 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy());
690 IRBuilder<> Builder(&BCI);
691 Scatterer Op0 = scatter(&BCI, BCI.getOperand(0));
698 BCI.getName() + ".i" + Twine(I));
714 Scatterer Mid = scatter(&BCI, V);
727 BCI
[all...]
H A DCallSiteSplitting.cpp248 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); local
249 if (BCI)
257 if (BCI)
258 V = cloneInstForMustTail(BCI, TI, V);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroEarly.cpp100 auto *BCI = Builder.CreateBitCast(Operand, FramePtrTy); local
101 auto *Load = Builder.CreateLoad(BCI);
H A DCoroutines.cpp415 auto BCI = new BitCastInst(*SI, *RI, "", Suspend); local
416 SI->set(BCI);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp719 BitCastInst *BCI = dyn_cast<BitCastInst>(V);
720 if (BCI)
721 return computeFromBCI(BCI, Result, DL);
727 /// \param BCI BitCastInst to operate on
731 static bool computeFromBCI(BitCastInst *BCI, VectorInfo &Result, argument
733 Instruction *Op = dyn_cast<Instruction>(BCI->getOperand(0));
769 Result.Is.insert(BCI);
H A DStackColoring.cpp951 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get()))
952 if (BCI->isUsedByMetadata())
953 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType()));
H A DCodeGenPrepare.cpp2084 BitCastInst *BCI = nullptr; local
2087 BCI = dyn_cast<BitCastInst>(V);
2088 if (BCI)
2089 V = BCI->getOperand(0);
2104 do { ++BI; } while (isa<DbgInfoIntrinsic>(BI) || &*BI == BCI);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp2267 auto *BCI = dyn_cast<BitCastInst>(IncValue); local
2269 if (!BCI)
2273 Type *TyA = BCI->getOperand(0)->getType();
2274 Type *TyB = BCI->getType();
2287 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) {
2289 Type *TyB = BCI->getOperand(0)->getType();
2290 Type *TyA = BCI->getType();
2330 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) {
2331 NewV = BCI->getOperand(0);
2365 else if (auto *BCI
[all...]
H A DInstructionCombining.cpp2195 if (auto *BCI = dyn_cast<BitCastInst>(ASCStrippedPtrOp)) {
2196 Value *SrcOp = BCI->getOperand(0);
2197 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy());
2248 if (Instruction *I = visitBitCast(*BCI)) {
2249 if (I != BCI) {
2250 I->takeName(BCI);
2251 BCI->getParent()->getInstList().insert(BCI->getIterator(), I);
2252 replaceInstUsesWith(*BCI, I);
H A DInstCombineCalls.cpp4015 if (CallInst *BCI = dyn_cast<CallInst>(BI)) {
4016 if (auto *II2 = dyn_cast<IntrinsicInst>(BCI)) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp68 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); local
69 BB->getInstList().insert(InsertPt, BCI);
70 SetInstDebugLocation(BCI);
71 return BCI;
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp880 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) {
881 if (BCI->getType() == NewGV->getType()) {
882 BCI->replaceAllUsesWith(NewGV);
883 BCI->eraseFromParent();
885 BCI->setOperand(0, NewGV);
1014 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) {
1015 if (!ValueIsOnlyUsedLocallyOrStoredToOneGlobal(BCI, GV, PHIs))
1568 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc))
1569 CI = cast<CallInst>(BCI->getOperand(0));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp366 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) {
367 MallocType = cast<PointerType>(BCI->getDestTy());
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp6003 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Address))
6004 Address = BCI->getOperand(0);

Completed in 230 milliseconds