[all-commits] [llvm/llvm-project] 89af17: Define a `cppAccessorType` to const-ref in APFloat...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Sun Jan 2 20:57:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89af17c0c74eb9d8d11870f6510e475eff74eef4
      https://github.com/llvm/llvm-project/commit/89af17c0c74eb9d8d11870f6510e475eff74eef4
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2022-01-03 (Mon, 03 Jan 2022)

  Changed paths:
    M mlir/include/mlir/IR/OpBase.td
    M mlir/lib/IR/BuiltinAttributes.cpp
    M mlir/test/lib/Dialect/Test/TestAttributes.cpp
    M mlir/test/mlir-tblgen/attrdefs.td
    M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp

  Log Message:
  -----------
  Define a `cppAccessorType` to const-ref in APFloatParameter and update ODS emitter to use it for verifier signatures

This reduce an unnecessary amount of copy of non-trivial objects, like
APFloat.

Reviewed By: rriddle, jpienaar

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




More information about the All-commits mailing list