[Mlir-commits] [mlir] [mlir] Add global and program memory space handling to the data layout subsystem (PR #77367)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Jan 9 06:47:06 PST 2024
================
@@ -103,6 +103,12 @@ class DataLayoutSpecAttr
/// Returns the alloca memory space identifier.
StringAttr getAllocaMemorySpaceIdentifier(MLIRContext *context) const;
+ /// Returns the program memory space identifier.
+ StringAttr getProgramMemorySpaceIdentifier(MLIRContext *context) const;
+
+ /// Returns the global memory space identifier.
+ StringAttr getGlobalMemorySpaceIdentifier(MLIRContext *context) const;
----------------
agozillon wrote:
This is the data layout document in LLVM which describes these segments of the layout in a little more detail: https://llvm.org/docs/LangRef.html#data-layout
I am happy to open a PR to add further comments if you wish however! But yes, I mimicked the comments from the original PR this one is based on which does the same.
https://github.com/llvm/llvm-project/pull/77367
More information about the Mlir-commits
mailing list