[llvm] [TableGen][GlobalISel] Add GINodeEquiv for sdivrem/udivrem (PR #120819)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 20:27:39 PST 2024
s-barannikov wrote:
> But you can't select nodes with multiple outputs in tablegen. There's no syntax to match it
I think I can? Something like this:
`(set GPR32:$rd1, GPR32:$rd2, (sdivrem i32:$rs1, i32:$rs2))`
or
`def : Pat<(sdivrem i32:$lhs, i32:$rhs), (MY_SDIVREM $lhs, $rhs)>;`
(assuming MY_SDIVREM has two explicit defs).
https://github.com/llvm/llvm-project/pull/120819
More information about the llvm-commits
mailing list