[llvm] [SelectionDAG] Introduce ISD::PTRADD (PR #140017)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 13:56:52 PDT 2025


================
@@ -1729,6 +1734,10 @@ inline bool isExtVecInRegOpcode(unsigned Opcode) {
          Opcode == ISD::SIGN_EXTEND_VECTOR_INREG;
 }
 
+inline bool isPtrAdd(unsigned Opcode) {
+  return (Opcode == ISD::ADD) || (Opcode == ISD::PTRADD);
+}
----------------
arsenm wrote:

I mean put this on SDValue, like isUndef 

https://github.com/llvm/llvm-project/pull/140017


More information about the llvm-commits mailing list