forked from OSchip/llvm-project
[X86] Remove unused intrinsic type handling. NFC
llvm-svn: 323503
This commit is contained in:
parent
ccb35dfda6
commit
95e8c9143e
|
@ -20212,25 +20212,6 @@ SDValue X86TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
|
|||
Src2, Src3),
|
||||
Mask, PassThru, Subtarget, DAG);
|
||||
}
|
||||
case INTR_TYPE_3OP_MASK_RM: {
|
||||
SDValue Src1 = Op.getOperand(1);
|
||||
SDValue Src2 = Op.getOperand(2);
|
||||
SDValue Imm = Op.getOperand(3);
|
||||
SDValue PassThru = Op.getOperand(4);
|
||||
SDValue Mask = Op.getOperand(5);
|
||||
// We specify 2 possible modes for intrinsics, with/without rounding
|
||||
// modes.
|
||||
// First, we check if the intrinsic have rounding mode (7 operands),
|
||||
// if not, we set rounding mode to "current".
|
||||
SDValue Rnd;
|
||||
if (Op.getNumOperands() == 7)
|
||||
Rnd = Op.getOperand(6);
|
||||
else
|
||||
Rnd = DAG.getConstant(X86::STATIC_ROUNDING::CUR_DIRECTION, dl, MVT::i32);
|
||||
return getVectorMaskingNode(DAG.getNode(IntrData->Opc0, dl, VT,
|
||||
Src1, Src2, Imm, Rnd),
|
||||
Mask, PassThru, Subtarget, DAG);
|
||||
}
|
||||
case INTR_TYPE_3OP_IMM8_MASK:
|
||||
case INTR_TYPE_3OP_MASK: {
|
||||
SDValue Src1 = Op.getOperand(1);
|
||||
|
@ -20590,13 +20571,6 @@ SDValue X86TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
|
|||
DataToCompress),
|
||||
Mask, PassThru, Subtarget, DAG);
|
||||
}
|
||||
case BROADCASTM: {
|
||||
SDValue Mask = Op.getOperand(1);
|
||||
MVT MaskVT = MVT::getVectorVT(MVT::i1,
|
||||
Mask.getSimpleValueType().getSizeInBits());
|
||||
Mask = DAG.getBitcast(MaskVT, Mask);
|
||||
return DAG.getNode(IntrData->Opc0, dl, Op.getValueType(), Mask);
|
||||
}
|
||||
case MASK_BINOP: {
|
||||
MVT VT = Op.getSimpleValueType();
|
||||
MVT MaskVT = MVT::getVectorVT(MVT::i1, VT.getSizeInBits());
|
||||
|
|
|
@ -27,7 +27,7 @@ enum IntrinsicType : uint16_t {
|
|||
CVTPD2PS, CVTPD2PS_MASK,
|
||||
INTR_TYPE_1OP_MASK, INTR_TYPE_1OP_MASK_RM,
|
||||
INTR_TYPE_2OP_MASK, INTR_TYPE_2OP_MASK_RM, INTR_TYPE_2OP_IMM8_MASK,
|
||||
INTR_TYPE_3OP_MASK, INTR_TYPE_3OP_MASK_RM, INTR_TYPE_3OP_IMM8_MASK,
|
||||
INTR_TYPE_3OP_MASK, INTR_TYPE_3OP_IMM8_MASK,
|
||||
FMA_OP_MASK, FMA_OP_MASKZ, FMA_OP_MASK3,
|
||||
FMA_OP_SCALAR_MASK, FMA_OP_SCALAR_MASKZ, FMA_OP_SCALAR_MASK3,
|
||||
IFMA_OP_MASK, IFMA_OP_MASKZ,
|
||||
|
@ -36,7 +36,7 @@ enum IntrinsicType : uint16_t {
|
|||
COMPRESS_EXPAND_IN_REG, COMPRESS_TO_MEM,
|
||||
TRUNCATE_TO_MEM_VI8, TRUNCATE_TO_MEM_VI16, TRUNCATE_TO_MEM_VI32,
|
||||
EXPAND_FROM_MEM,
|
||||
TERLOG_OP_MASK, TERLOG_OP_MASKZ, BROADCASTM, FIXUPIMM, FIXUPIMM_MASKZ, FIXUPIMMS,
|
||||
TERLOG_OP_MASK, TERLOG_OP_MASKZ, FIXUPIMM, FIXUPIMM_MASKZ, FIXUPIMMS,
|
||||
FIXUPIMMS_MASKZ, GATHER_AVX2, MASK_BINOP,
|
||||
ROUNDP, ROUNDS
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue