[llvm-branch-commits] [clang] [llvm] [mlir] [RFC][AMDGPU] Add BARRIER address space (PR #195613)

Pierre van Houtryve via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 6 07:18:59 PDT 2026


================
@@ -59,6 +60,8 @@ static TargetExtType *getTargetExtType(const GlobalVariable &GV) {
 }
 
 TargetExtType *isNamedBarrier(const GlobalVariable &GV) {
+  if (GV.getAddressSpace() != AMDGPUAS::EXECSYNC)
+    return nullptr;
----------------
Pierre-vh wrote:

Done, added a few tests for that. I also made it so it doesn't crash but instead diagnoses + emit trap, like we do for other things.

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


More information about the llvm-branch-commits mailing list