Skip to content

Commit

Permalink
fixup! remove multiple render defs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmaitland committed Oct 2, 2024
1 parent ac9840b commit 37daa19
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions llvm/lib/Target/RISCV/RISCVGISel.td
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ def GIAddrRegImm :
GIComplexOperandMatcher<s32, "selectAddrRegImm">,
GIComplexPatternEquiv<AddrRegImm>;

def GIVLOpS32 : GIComplexOperandMatcher<s32, "renderVLOp">,
GIComplexPatternEquiv<VLOp>;
def GIVLOpS64 : GIComplexOperandMatcher<s64, "renderVLOp">,
GIComplexPatternEquiv<VLOp>;
// FIXME: This is labelled as handling 's32', however the ComplexPattern it
// refers to handles both i32 and i64 based on the HwMode. Currently this LLT
// parameter appears to be ignored so this pattern works for both, however we
// should add a LowLevelTypeByHwMode, and use that to define our XLenLLT instead
// here.
def GIVLOp : GIComplexOperandMatcher<s32, "renderVLOp">,
GIComplexPatternEquiv<VLOp>;

// Convert from i32 immediate to i64 target immediate to make SelectionDAG type
// checking happy so we can use ADDIW which expects an XLen immediate.
Expand Down

0 comments on commit 37daa19

Please sign in to comment.