[llvm] [Docs][AMDGPU] availability/visibility in addrspace(3) (PR #212707)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 22:55:38 PDT 2026


================
@@ -126,19 +126,44 @@ these necessary conditions, and hence they can be explained using the rules from
 either memory model. But the new intrinsics and metadata *opt out* of the LLVM
 memory model, and can only be explained using the AMDGPU memory model.
 
+:::{note}
+We introduce new intrinsics because metadata cannot be used to express the
+availability and visibility of ordinary
+load/store operations, because the scope is necessary for correctness. In a
+hypothetical operation like this:
+
+```llvm
----------------
ssahasra wrote:

Yes, that will be really good to have. The intrinsics were introduced early because of an immediate need, but it would be much nicer to specify the semantics on ordinary load/store intructions.

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


More information about the llvm-commits mailing list