[PATCH] D78811: [AMDGPU] Enable base pointer.

Christudasan Devadasan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 26 10:37:20 PDT 2020


cdevadas marked 2 inline comments as done.
cdevadas added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:885
+  if (FuncInfo->BasePointerSaveIndex) {
+    const int BasePtrFI = FuncInfo->BasePointerSaveIndex.getValue();
+
----------------
arsenm wrote:
> * BasePointerSaveIndex is probably the normal way to get the value
Here getValue() is required. It is of type Optional<int>.


================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:122
+
+Register SIRegisterInfo::getBaseRegister() const { return AMDGPU::SGPR34; }
+
----------------
arsenm wrote:
> Can this go in the header or is is the register enum not defined there?
Right, the enum isn't defined there. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78811





More information about the llvm-commits mailing list