[Mlir-commits] [mlir] fd92735 - [MLIR][Doc] Fix NamedAttribute API in code sample (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Apr 24 10:28:45 PDT 2024
Author: Mehdi Amini
Date: 2024-04-24T10:28:30-07:00
New Revision: fd9273593390c4e5004bba27eeeea60e44175dcf
URL: https://github.com/llvm/llvm-project/commit/fd9273593390c4e5004bba27eeeea60e44175dcf
DIFF: https://github.com/llvm/llvm-project/commit/fd9273593390c4e5004bba27eeeea60e44175dcf.diff
LOG: [MLIR][Doc] Fix NamedAttribute API in code sample (NFC)
Added:
Modified:
mlir/docs/Tutorials/UnderstandingTheIRStructure.md
Removed:
################################################################################
diff --git a/mlir/docs/Tutorials/UnderstandingTheIRStructure.md b/mlir/docs/Tutorials/UnderstandingTheIRStructure.md
index 067a11dc435abd..ed323fc42336bc 100644
--- a/mlir/docs/Tutorials/UnderstandingTheIRStructure.md
+++ b/mlir/docs/Tutorials/UnderstandingTheIRStructure.md
@@ -40,8 +40,8 @@ the nested regions and print them individually:
if (!op->getAttrs().empty()) {
printIndent() << op->getAttrs().size() << " attributes:\n";
for (NamedAttribute attr : op->getAttrs())
- printIndent() << " - '" << attr.first << "' : '" << attr.second
- << "'\n";
+ printIndent() << " - '" << attr.getName() << "' : '"
+ << attr.getValue() << "'\n";
}
// Recurse into each of the regions attached to the operation.
More information about the Mlir-commits
mailing list