[all-commits] [llvm/llvm-project] 10a80c: [mlir] Implement replacement of SymbolRefAttrs in ...

zero9178 via All-commits all-commits at lists.llvm.org
Thu Oct 28 10:08:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10a80c44133223c99ea67c805835e24938d840ea
      https://github.com/llvm/llvm-project/commit/10a80c44133223c99ea67c805835e24938d840ea
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2021-10-28 (Thu, 28 Oct 2021)

  Changed paths:
    M mlir/include/mlir/IR/BuiltinAttributes.td
    M mlir/include/mlir/IR/SubElementInterfaces.td
    M mlir/lib/IR/BuiltinAttributes.cpp
    M mlir/lib/IR/SymbolTable.cpp
    M mlir/test/IR/test-symbol-rauw.mlir
    M mlir/test/lib/Dialect/Test/TestAttrDefs.td
    M mlir/test/lib/Dialect/Test/TestAttributes.cpp

  Log Message:
  -----------
  [mlir] Implement replacement of SymbolRefAttrs in Dialect attributes using SubElementAttr interface

This patch extends the SubElementAttr interface to allow replacing a contained sub attribute. The attribute that should be replaced is identified by an index which denotes the n-th element returned by the accompanying walkImmediateSubElements method.

Using this addition the patch implements replacing SymbolRefAttrs contained within any dialect attributes.

Differential Revision: https://reviews.llvm.org/D111357




More information about the All-commits mailing list