Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
Show All 32 Lines | public: | ||||
bool runOnMachineFunction(MachineFunction &MF) override { | bool runOnMachineFunction(MachineFunction &MF) override { | ||||
Subtarget = &MF.getSubtarget<LoongArchSubtarget>(); | Subtarget = &MF.getSubtarget<LoongArchSubtarget>(); | ||||
return SelectionDAGISel::runOnMachineFunction(MF); | return SelectionDAGISel::runOnMachineFunction(MF); | ||||
} | } | ||||
void Select(SDNode *Node) override; | void Select(SDNode *Node) override; | ||||
bool SelectBaseAddr(SDValue Addr, SDValue &Base); | |||||
bool selectShiftMask(SDValue N, unsigned ShiftWidth, SDValue &ShAmt); | bool selectShiftMask(SDValue N, unsigned ShiftWidth, SDValue &ShAmt); | ||||
bool selectShiftMaskGRLen(SDValue N, SDValue &ShAmt) { | bool selectShiftMaskGRLen(SDValue N, SDValue &ShAmt) { | ||||
return selectShiftMask(N, Subtarget->getGRLen(), ShAmt); | return selectShiftMask(N, Subtarget->getGRLen(), ShAmt); | ||||
} | } | ||||
bool selectShiftMask32(SDValue N, SDValue &ShAmt) { | bool selectShiftMask32(SDValue N, SDValue &ShAmt) { | ||||
return selectShiftMask(N, 32, ShAmt); | return selectShiftMask(N, 32, ShAmt); | ||||
} | } | ||||
// Include the pieces autogenerated from the target description. | // Include the pieces autogenerated from the target description. | ||||
#include "LoongArchGenDAGISel.inc" | #include "LoongArchGenDAGISel.inc" | ||||
}; | }; | ||||
} // namespace llvm | } // namespace llvm | ||||
#endif // LLVM_LIB_TARGET_LOONGARCH_LOONGARCHISELDAGTODAG_H | #endif // LLVM_LIB_TARGET_LOONGARCH_LOONGARCHISELDAGTODAG_H |