[clang] [llvm] [mlir] [polly] [IR] Add alias scope domains with disjoint scopes (PR #218768)
Bruno De Fraine via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 15:53:17 PDT 2026
================
@@ -1596,6 +1596,34 @@ void TempMDNodeDeleter::operator()(MDNode *Node) const {
MDNode::deleteTemporary(Node);
}
+/// Wrapper around alias scope domain metedata to allow accessing their fields,
+/// including surfacing the optional `i1 disjoint` parameter, hiding the details
+/// of the metadata encoding.
+class AliasScopeDomainNode {
+ const MDNode *Node = nullptr;
+
+public:
+ AliasScopeDomainNode() = default;
+ explicit AliasScopeDomainNode(const MDNode *N) : Node(N) {}
+
+ /// Get the MDNode for this AliasScopeDomainNode.
+ const MDNode *getNode() const { return Node; }
+
+ StringRef getName() const {
----------------
brunodf-gf wrote:
Actually, what you are returning here is the (optional) description of the domain. What the LangRef calls its "name" is the first operand. So it would be best to rename this method to `getDescription`.
(Sorry, I should have spotted this before.)
https://github.com/llvm/llvm-project/pull/218768
More information about the llvm-commits
mailing list