diff --git a/mlir/include/mlir/IR/SymbolTable.h b/mlir/include/mlir/IR/SymbolTable.h --- a/mlir/include/mlir/IR/SymbolTable.h +++ b/mlir/include/mlir/IR/SymbolTable.h @@ -49,8 +49,9 @@ /// Insert a new symbol into the table, and rename it as necessary to avoid /// collisions. Also insert at the specified location in the body of the /// associated operation if it is not already there. It is asserted that the - /// symbol is not inside another operation. - void insert(Operation *symbol, Block::iterator insertPt = {}); + /// symbol is not inside another operation. Return the name of the symbol + /// after insertion. + StringRef insert(Operation *symbol, Block::iterator insertPt = {}); /// Return the name of the attribute used for symbol names. static StringRef getSymbolAttrName() { return "sym_name"; }