llvm-project/mlir/lib/Pass
Mehdi Amini 43a894365e Remove deprecated registration APIs (NFC)
In D104421, we changed the API for pass registration.
Before you would write:

      void registerPass("my-pass", "My Pass Description.",
                        [] { return createMyPass(); });
while now you’d only write:

      void registerPass([] { return createMyPass(); });

If you’re using TableGen to define your pass registration, you shouldn’t have anything to do. If you’re using directly the C++ API here are some changes.
Your project may also be broken even if you use TableGen and you call the
generated registration API in case your pass implementation didn’t inherit from
the MyPassBase class generated by TableGen.

If you don't use TableGen, the "my-pass" and "My Pass Description." fields must
be provided by overriding methods on the pass itself:

  llvm::StringRef getArgument() const final { return "my-pass"; }
  llvm::StringRef getDescription() const final {
    return "My Pass Description.";
  }

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D104429
2021-09-01 18:53:30 +00:00
..
CMakeLists.txt [mlir] Refactor the implementation of pass crash reproducers 2021-05-19 16:59:53 -07:00
IRPrinting.cpp [mlir-ir-printing] Prefix the dump message with the split marker(// -----) 2021-06-10 17:34:50 -07:00
Pass.cpp Fix mismatch between the provisioning of asyncExecutors and the actual thread count currently in the context (NFC) 2021-07-16 06:51:06 +00:00
PassCrashRecovery.cpp [mlir] Refactor the implementation of pass crash reproducers 2021-05-19 16:59:53 -07:00
PassDetail.h [mlir] Refactor the implementation of pass crash reproducers 2021-05-19 16:59:53 -07:00
PassManagerOptions.cpp [mlir] Add a new `print-ir-after-failure` IR pass printing flag 2021-05-19 16:54:20 -07:00
PassRegistry.cpp Remove deprecated registration APIs (NFC) 2021-09-01 18:53:30 +00:00
PassStatistics.cpp [ADT] Remove StatisticBase and make NoopStatistic empty 2021-04-26 16:47:32 -07:00
PassTiming.cpp [MLIR] Factor pass timing out into a dedicated timing manager 2021-05-12 18:14:51 +02:00