[all-commits] [llvm/llvm-project] e055aa: Refactor OperationName to use virtual tables for d...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Fri Jan 13 17:27:57 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e055aad5ffb348472c65dfcbede85f39efe8f906
      https://github.com/llvm/llvm-project/commit/e055aad5ffb348472c65dfcbede85f39efe8f906
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M mlir/include/mlir/IR/ExtensibleDialect.h
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/include/mlir/IR/Operation.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/AsmParser/Parser.cpp
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/IR/ExtensibleDialect.cpp
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/IR/Operation.cpp
    M mlir/lib/Rewrite/ByteCode.cpp
    M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
    M mlir/unittests/Interfaces/InferTypeOpInterfaceTest.cpp

  Log Message:
  -----------
  Refactor OperationName to use virtual tables for dispatch (NFC)

This streamlines the implementation and makes it so that the virtual tables are in the binary instead of dynamically assembled during initialization.
The dynamic allocation size of op registration is also smaller with this
change.

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


  Commit: 4cef3f2232478c3fa65b4a77e141981fe875ac68
      https://github.com/llvm/llvm-project/commit/4cef3f2232478c3fa65b4a77e141981fe875ac68
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M mlir/lib/Dialect/SCF/IR/SCF.cpp
    M mlir/test/Dialect/SCF/invalid.mlir

  Log Message:
  -----------
  Fix scf.while verifier crash (NFC)

Harden the verifier against invalid IR.


Compare: https://github.com/llvm/llvm-project/compare/f72601a89f30...4cef3f223247


More information about the All-commits mailing list