[all-commits] [llvm/llvm-project] a2f71d: [MLIR] Add LocationAttr declarations to ODS

Andrew Young via All-commits all-commits at lists.llvm.org
Mon Jan 23 21:08:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2f71d2732d3fa2700ae2f899fef112955b07af9
      https://github.com/llvm/llvm-project/commit/a2f71d2732d3fa2700ae2f899fef112955b07af9
  Author: Andrew Young <youngar17 at gmail.com>
  Date:   2023-01-23 (Mon, 23 Jan 2023)

  Changed paths:
    M mlir/include/mlir/IR/OpBase.td

  Log Message:
  -----------
  [MLIR] Add LocationAttr declarations to ODS

This commit adds location attributes and arrays of locations to OpBase.td.
Using LocationAttrs directly in an operation is useful when the location does
not correspond 1-1 to an operation or value in the IR.  We use this in CIRCT to
store the declaration location of result ports of HWModule operations.

Reviewed By: rriddle

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




More information about the All-commits mailing list