[all-commits] [llvm/llvm-project] 78fdbd: Use reference for large object passed by value at ...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Mon Jan 17 22:49:06 PST 2022


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

  Changed paths:
    M mlir/include/mlir/TableGen/Operator.h
    M mlir/lib/TableGen/Operator.cpp
    M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
    M mlir/tools/mlir-tblgen/CodeGenHelpers.cpp
    M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
    M mlir/tools/mlir-tblgen/OpDocGen.cpp
    M mlir/tools/mlir-tblgen/OpInterfacesGen.cpp

  Log Message:
  -----------
  Use reference for large object passed by value at the moment in MLIR TableGen (NFC)

Also make the ODS Operator class have const iterator, and use const
references for existing API taking Operator by reference.

Reviewed By: rriddle

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




More information about the All-commits mailing list