Lines Matching defs:opc
45 unsigned opc, ///< opcode of the second cast constant expression
51 assert(CastInst::isCast(opc) && "Invalid cast opcode");
57 Instruction::CastOps secondOp = Instruction::CastOps(opc);
124 static Constant *foldMaybeUndesirableCast(unsigned opc, Constant *V,
126 return ConstantExpr::isDesirableCastOp(opc)
127 ? ConstantExpr::getCast(opc, V, DestTy)
128 : ConstantFoldCastInstruction(opc, V, DestTy);
131 Constant *llvm::ConstantFoldCastInstruction(unsigned opc, Constant *V,
140 if (opc == Instruction::ZExt || opc == Instruction::SExt ||
141 opc == Instruction::UIToFP || opc == Instruction::SIToFP)
147 opc != Instruction::AddrSpaceCast)
155 if (unsigned newOpc = foldConstantCastPair(opc, CE, DestTy))
171 Constant *Res = foldMaybeUndesirableCast(opc, Splat, DstEltTy);
183 Constant *Casted = foldMaybeUndesirableCast(opc, C, DstEltTy);
193 switch (opc) {
211 APSInt IntVal(DestTy->getScalarSizeInBits(), opc == Instruction::FPToUI);
227 apf.convertFromAPInt(api, opc==Instruction::SIToFP,