[all-commits] [llvm/llvm-project] baca1c: [mlir][ods] Make Attr/Type def accessors match the...

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Jun 13 22:13:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: baca1c1ac41ebb11cb93c82188d5cc7b203a2f5b
      https://github.com/llvm/llvm-project/commit/baca1c1ac41ebb11cb93c82188d5cc7b203a2f5b
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2022-06-14 (Tue, 14 Jun 2022)

  Changed paths:
    M mlir/include/mlir/TableGen/AttrOrTypeDef.h
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
    M mlir/lib/Dialect/SPIRV/IR/TargetAndABI.cpp
    M mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
    M mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
    M mlir/lib/TableGen/AttrOrTypeDef.cpp
    M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
    M mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
    M mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h

  Log Message:
  -----------
  [mlir][ods] Make Attr/Type def accessors match the dialect

The generated attribute and type def accessors are changed to match the setting on the dialect. Most importantly, "prefixed" will now correctly convert snake case to camel case (e.g. `weight_zp` -> `getWeightZp`)

Reviewed By: jpienaar

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




More information about the All-commits mailing list