unsigned &Mods,
bool IsCanonicalizing,
bool AllowAbs) const {
- Mods = 0;
+ Mods = SISrcMods::NONE;
Src = In;
if (Src.getOpcode() == ISD::FNEG) {
bool AMDGPUDAGToDAGISel::SelectVOP3PMods(SDValue In, SDValue &Src,
SDValue &SrcMods, bool IsDOT) const {
- unsigned Mods = 0;
+ unsigned Mods = SISrcMods::NONE;
Src = In;
// TODO: Handle G_FSUB 0 as fneg
// NEG and SEXT share same bit-mask because they can't be set simultaneously.
namespace SISrcMods {
enum : unsigned {
+ NONE = 0,
NEG = 1 << 0, // Floating-point negate modifier
ABS = 1 << 1, // Floating-point absolute modifier
SEXT = 1 << 0, // Integer sign-extend modifier
}
def opsel_i1timm : SDNodeXForm<timm, [{
- return CurDAG->getTargetConstant(N->getZExtValue() ? SISrcMods::OP_SEL_0 : 0, SDLoc(N), MVT::i32);
+ return CurDAG->getTargetConstant(
+ N->getZExtValue() ? SISrcMods::OP_SEL_0 : SISrcMods::NONE,
+ SDLoc(N), MVT::i32);
}]>;
def gi_opsel_i1timm : GICustomOperandRenderer<"renderOpSelTImm">,
GISDNodeXFormEquiv<opsel_i1timm>;