[llvm] [SelectionDAG] Introduce ISD::PTRADD (PR #140017)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon May 19 05:25:46 PDT 2025
================
@@ -1502,6 +1502,11 @@ enum NodeType {
// Outputs: [rv], output chain, glue
PATCHPOINT,
+ // PTRADD represents pointer arithmatic semantics, for targets that opt in
+ // using shouldPreservePtrArith().
+ // ptr = PTRADD ptr, offset
+ PTRADD,
----------------
arsenm wrote:
Oh no, it's defined like this:
`def ptradd : SDNode<"ISD::ADD" , SDTPtrAddOp, []>;`
Since this now can map to 2 values, we'll need custom handling in GlobalISelEmitter
https://github.com/llvm/llvm-project/pull/140017
More information about the llvm-commits
mailing list