Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp
Show First 20 Lines • Show All 474 Lines • ▼ Show 20 Lines | NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM, | ||||
setOperationAction(ISD::ConstantFP, MVT::f64, Legal); | setOperationAction(ISD::ConstantFP, MVT::f64, Legal); | ||||
setOperationAction(ISD::ConstantFP, MVT::f32, Legal); | setOperationAction(ISD::ConstantFP, MVT::f32, Legal); | ||||
setOperationAction(ISD::ConstantFP, MVT::f16, Legal); | setOperationAction(ISD::ConstantFP, MVT::f16, Legal); | ||||
// TRAP can be lowered to PTX trap | // TRAP can be lowered to PTX trap | ||||
setOperationAction(ISD::TRAP, MVT::Other, Legal); | setOperationAction(ISD::TRAP, MVT::Other, Legal); | ||||
// Register custom handling for vector loads/stores | // Register custom handling for vector loads/stores | ||||
for (MVT VT : MVT::vector_valuetypes()) { | for (MVT VT : MVT::fixedlen_vector_valuetypes()) { | ||||
if (IsPTXVectorType(VT)) { | if (IsPTXVectorType(VT)) { | ||||
setOperationAction(ISD::LOAD, VT, Custom); | setOperationAction(ISD::LOAD, VT, Custom); | ||||
setOperationAction(ISD::STORE, VT, Custom); | setOperationAction(ISD::STORE, VT, Custom); | ||||
setOperationAction(ISD::INTRINSIC_W_CHAIN, VT, Custom); | setOperationAction(ISD::INTRINSIC_W_CHAIN, VT, Custom); | ||||
} | } | ||||
} | } | ||||
// Custom handling for i8 intrinsics | // Custom handling for i8 intrinsics | ||||
▲ Show 20 Lines • Show All 4,576 Lines • Show Last 20 Lines |