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);
183 static Constant *foldMaybeUndesirableCast(unsigned opc, Constant *V,
185 return ConstantExpr::isDesirableCastOp(opc)
186 ? ConstantExpr::getCast(opc, V, DestTy)
187 : ConstantFoldCastInstruction(opc, V, DestTy);
190 Constant *llvm::ConstantFoldCastInstruction(unsigned opc, Constant *V,
199 if (opc == Instruction::ZExt || opc == Instruction::SExt ||
200 opc == Instruction::UIToFP || opc == Instruction::SIToFP)
206 opc != Instruction::AddrSpaceCast)
214 if (unsigned newOpc = foldConstantCastPair(opc, CE, DestTy))
230 Constant *Res = foldMaybeUndesirableCast(opc, Splat, DstEltTy);
242 Constant *Casted = foldMaybeUndesirableCast(opc, C, DstEltTy);
252 switch (opc) {
271 APSInt IntVal(DestBitWidth, opc == Instruction::FPToUI);
287 apf.convertFromAPInt(api, opc==Instruction::SIToFP,