[clang] [lld] [llvm] [mlir] [RFC][AMDGPU] Add BARRIER address space (PR #209746)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 03:15:12 PDT 2026
================
@@ -3349,10 +3368,27 @@ bool AMDGPULegalizerInfo::legalizeGlobalValue(
MachineFunction &MF = B.getMF();
SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>();
+ if (AS == AMDGPUAS::BARRIER) {
+ const GlobalVariable *GVar = cast<GlobalVariable>(GV);
+ if (!AMDGPU::isNamedBarrier(*GVar)) {
+ const Function &Fn = MF.getFunction();
+ Fn.getContext().diagnose(DiagnosticInfoUnsupported(
+ Fn, "unsupported use of BARRIER address space", MI.getDebugLoc(),
----------------
arsenm wrote:
This could be a more specific error message
https://github.com/llvm/llvm-project/pull/209746
More information about the cfe-commits
mailing list