diff options
Diffstat (limited to 'mlir/g3doc')
| -rw-r--r-- | mlir/g3doc/LangRef.md | 6 | ||||
| -rw-r--r-- | mlir/g3doc/Tutorials/Toy/Ch-6.md | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/mlir/g3doc/LangRef.md b/mlir/g3doc/LangRef.md index 391f77325d4..3409b9fac83 100644 --- a/mlir/g3doc/LangRef.md +++ b/mlir/g3doc/LangRef.md @@ -1367,13 +1367,15 @@ A string attribute is an attribute that represents a string literal value. Syntax: ``` {.ebnf} -symbol-ref-attribute ::= symbol-ref-id +symbol-ref-attribute ::= symbol-ref-id (`::` symbol-ref-id)* ``` A symbol reference attribute is a literal attribute that represents a named reference to an operation that is nested within an operation with the `OpTrait::SymbolTable` trait. As such, this reference is given meaning by the -nearest parent operation containing the `OpTrait::SymbolTable` trait. +nearest parent operation containing the `OpTrait::SymbolTable` trait. It may +optionally contain a set of nested references that further resolve to a symbol +nested within a different symbol table. This attribute can only be held internally by [array attributes](#array-attribute) and diff --git a/mlir/g3doc/Tutorials/Toy/Ch-6.md b/mlir/g3doc/Tutorials/Toy/Ch-6.md index b01dfde5a9f..49114b45dff 100644 --- a/mlir/g3doc/Tutorials/Toy/Ch-6.md +++ b/mlir/g3doc/Tutorials/Toy/Ch-6.md @@ -26,9 +26,9 @@ During lowering we can get, or build, the declaration for printf as so: ```c++ /// Return a symbol reference to the printf function, inserting it into the /// module if necessary. -static SymbolRefAttr getOrInsertPrintf(PatternRewriter &rewriter, - ModuleOp module, - LLVM::LLVMDialect *llvmDialect) { +static FlatSymbolRefAttr getOrInsertPrintf(PatternRewriter &rewriter, + ModuleOp module, + LLVM::LLVMDialect *llvmDialect) { auto *context = module.getContext(); if (module.lookupSymbol<LLVM::LLVMFuncOp>("printf")) return SymbolRefAttr::get("printf", context); |

