[all-commits] [llvm/llvm-project] 7924fb: [mlir][OpFormatGen] Add support for optional enum ...

River Riddle via All-commits all-commits at lists.llvm.org
Fri Dec 4 21:05:48 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7924fb34f33a76fd3c36f5635dd40990ecd79741
      https://github.com/llvm/llvm-project/commit/7924fb34f33a76fd3c36f5635dd40990ecd79741
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M mlir/test/Target/llvmir.mlir
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/mlir-tblgen/op-format.mlir
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  -----------
  [mlir][OpFormatGen] Add support for optional enum attributes

The check for formatting enum attributes was missing a call to get the base attribute, which is necessary to strip off the top-level OptionalAttr<> wrapper.

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




More information about the All-commits mailing list