[all-commits] [llvm/llvm-project] d256b9: [TableGen] Change `DefInit::Def` to a const Record...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Wed Oct 2 09:48:48 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d256b9e88b7aa9155380a4e70d39a2a0121ff917
      https://github.com/llvm/llvm-project/commit/d256b9e88b7aa9155380a4e70d39a2a0121ff917
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M clang/utils/TableGen/ClangOptionDocEmitter.cpp
    M llvm/include/llvm/TableGen/DirectiveEmitter.h
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/Record.cpp
    M llvm/lib/TableGen/TGParser.cpp
    M llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
    M llvm/utils/TableGen/Common/CodeGenSchedule.cpp
    M llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h
    M llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
    M mlir/include/mlir/TableGen/Attribute.h
    M mlir/lib/TableGen/Attribute.cpp
    M mlir/lib/TableGen/Operator.cpp
    M mlir/lib/TableGen/Pattern.cpp
    M mlir/tools/mlir-tblgen/BytecodeDialectGen.cpp
    M mlir/tools/mlir-tblgen/EnumsGen.cpp
    M mlir/tools/mlir-tblgen/OmpOpGen.cpp

  Log Message:
  -----------
  [TableGen] Change `DefInit::Def` to a const Record pointer (#110747)

This change undoes a const_cast<> introduced in an earlier change to
help transition to const pointers. It is a part of effort to have better
const correctness in TableGen backends:


https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list