[Mlir-commits] [mlir] [mlir][OpenACC][OpenMP] Use explicit attribute APIs (PR #218901)
Mehdi Amini
llvmlistbot at llvm.org
Wed Aug 26 05:31:30 PDT 2026
================
@@ -157,6 +157,13 @@ def BlockArgOpenMPOpInterface : OpInterface<"BlockArgOpenMPOpInterface"> {
"iface." # clause.blockArgsMethod.name # "()))" # [{
pairs.emplace_back(var, arg);
} }]), "\n")
+ >,
+ InterfaceMethod<
+ "Get the symbols referenced by the private clause.",
+ "::mlir::ArrayAttr", "getPrivateSymsAttribute", (ins), [{}], [{
+ auto attr = $_op->getInherentAttr("private_syms");
+ return ::llvm::cast<::mlir::ArrayAttr>(attr.value());
+ }]
----------------
joker-eph wrote:
Thanks for catching that I forgot about your original comment ...
Will look into this!
https://github.com/llvm/llvm-project/pull/218901
More information about the Mlir-commits
mailing list