[PATCH] D76263: AMDGPU: Initial, crude support for indirect calls

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 17 08:31:25 PDT 2020


arsenm marked an inline comment as done.
arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:2942-2944
+  } else {
+    Ops.push_back(DAG.getTargetConstant(0, DL, MVT::i64));
+  }
----------------
sameerds wrote:
> I might be mistaken: Is this just emitting a call to nul if the symbol is not found? Does GSD here potentially represent a function pointer??
No, the call target is passed below. This is a dummy parameter used to find the callee IR function to analyze the register/stack usage of the callee. It isn't used for the call itself


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76263/new/

https://reviews.llvm.org/D76263





More information about the llvm-commits mailing list