Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | if (Subtarget.hasBasicF()) { | ||||
setCondCodeAction(FPCCToExpand, MVT::f32, Expand); | setCondCodeAction(FPCCToExpand, MVT::f32, Expand); | ||||
setOperationAction(ISD::SELECT_CC, MVT::f32, Expand); | setOperationAction(ISD::SELECT_CC, MVT::f32, Expand); | ||||
} | } | ||||
if (Subtarget.hasBasicD()) { | if (Subtarget.hasBasicD()) { | ||||
setCondCodeAction(FPCCToExpand, MVT::f64, Expand); | setCondCodeAction(FPCCToExpand, MVT::f64, Expand); | ||||
setOperationAction(ISD::SELECT_CC, MVT::f64, Expand); | setOperationAction(ISD::SELECT_CC, MVT::f64, Expand); | ||||
} | } | ||||
setOperationAction(ISD::BR_CC, GRLenVT, Expand); | |||||
setOperationAction(ISD::SELECT_CC, GRLenVT, Expand); | setOperationAction(ISD::SELECT_CC, GRLenVT, Expand); | ||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand); | setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand); | ||||
// Compute derived properties from the register classes. | // Compute derived properties from the register classes. | ||||
computeRegisterProperties(STI.getRegisterInfo()); | computeRegisterProperties(STI.getRegisterInfo()); | ||||
setStackPointerRegisterToSaveRestore(LoongArch::R3); | setStackPointerRegisterToSaveRestore(LoongArch::R3); | ||||
▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines |