Lines Matching defs:BitCast
188 if (CI.getOpcode() != Instruction::BitCast ||
500 Value *BitCast = IC.Builder.CreateBitCast(VecOp, BitCastTo);
501 return ExtractElementInst::Create(BitCast, IC.Builder.getInt32(NewIdx));
2308 case Instruction::BitCast:
2387 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast,
2390 if (!match(BitCast.getOperand(0),
2396 Type *DestType = BitCast.getType();
2408 return CastInst::Create(Instruction::BitCast, VecOp, DestType);
2414 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast,
2416 Type *DestTy = BitCast.getType();
2419 if (!match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) ||
2486 static Instruction *foldBitCastSelect(BitCastInst &BitCast,
2489 if (!match(BitCast.getOperand(0),
2495 Type *DestTy = BitCast.getType();
2509 auto *Sel = cast<Instruction>(BitCast.getOperand(0));
2547 // BitCast used by Store can be handled in InstCombineLoadStoreAlloca.cpp.
2677 // Replace users of BitCast B->A with NewPHI. These will help
2776 return CastInst::Create(Instruction::BitCast, Elem, DestTy);