[llvm] [AMDGPU] Make globally-addressable-scratch opt-in (PR #189555)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 02:08:34 PDT 2026


================
@@ -827,6 +831,11 @@ unsigned GCNSubtarget::getNSAThreshold(const MachineFunction &MF) const {
   return NSAThreshold;
 }
 
+bool GCNSubtarget::isGloballyAddressableScratchEnabled() const {
+  return HasGloballyAddressableScratchSupport &&
+         EnableGloballyAddressableScratch;
----------------
ssahasra wrote:

I was hoping we could get an explanation for this. I am actually not able to make out what is the "constructor" being referred to here.

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


More information about the llvm-commits mailing list