[llvm] [AMDGPU][SDAG] Initial support for ISD::PTRADD (PR #141725)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 06:40:52 PDT 2025


================
@@ -61,6 +61,14 @@ static cl::opt<bool> UseDivergentRegisterIndexing(
     cl::desc("Use indirect register addressing for divergent indexes"),
     cl::init(false));
 
+// TODO This option should be removed once we switch to always using PTRADD in
+// the SelectionDAG.
+static cl::opt<bool> UseSelectionDAGPTRADD(
+    "amdgpu-use-sdag-ptradd", cl::Hidden,
+    cl::desc("Generate ISD::PTRADD nodes for 64-bit pointer arithmetic in the "
----------------
shiltian wrote:

why only 32-bit pointer?

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


More information about the llvm-commits mailing list