Lines Matching defs:opc
46 unsigned opc, ///< opcode of the second cast constant expression
52 assert(CastInst::isCast(opc) && "Invalid cast opcode");
58 Instruction::CastOps secondOp = Instruction::CastOps(opc);
123 static Constant *foldMaybeUndesirableCast(unsigned opc, Constant *V,
125 return ConstantExpr::isDesirableCastOp(opc)
126 ? ConstantExpr::getCast(opc, V, DestTy)
127 : ConstantFoldCastInstruction(opc, V, DestTy);
130 Constant *llvm::ConstantFoldCastInstruction(unsigned opc, Constant *V,
139 if (opc == Instruction::ZExt || opc == Instruction::SExt ||
140 opc == Instruction::UIToFP || opc == Instruction::SIToFP)
146 opc != Instruction::AddrSpaceCast)
154 if (unsigned newOpc = foldConstantCastPair(opc, CE, DestTy))
170 Constant *Res = foldMaybeUndesirableCast(opc, Splat, DstEltTy);
182 Constant *Casted = foldMaybeUndesirableCast(opc, C, DstEltTy);
192 switch (opc) {
211 APSInt IntVal(DestBitWidth, opc == Instruction::FPToUI);
227 apf.convertFromAPInt(api, opc==Instruction::SIToFP,