[llvm] [DAG] Introduce generic shl_add node [NFC] (PR #88791)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 10:17:13 PDT 2024
================
@@ -710,6 +710,13 @@ enum NodeType {
FSHL,
FSHR,
+ // Represents (ADD (SHL a, b), c) with the arguments appearing in the order
+ // a, b, c. 'b' must be a constant, and follows the rules for shift amount
+ // types described just above. This is used soley post-legalization when
+ // lowering MUL to target specific instructions - e.g. LEA on x86 or
+ // sh1add/sh2add/sh3add on RISCV.
----------------
topperc wrote:
RISCV -> RISC-V
https://github.com/llvm/llvm-project/pull/88791
More information about the llvm-commits
mailing list