llvm-project/mlir/tools
Mehdi Amini ee4d034277 Change pass registration generated code to allow users to selectively register passes
This slightly tweaks the generated code from:

  #ifdef GEN_PASS_REGISTRATION
  ::mlir::registerPass("flag1", ...
  ::mlir::registerPass("flag2", ...
  #endif // GEN_PASS_REGISTRATION

to:

  #ifdef GEN_PASS_REGISTRATION
  #define GEN_PASS_REGISTRATION_Pass1
  #define GEN_PASS_REGISTRATION_Pass2
  #endif // GEN_PASS_REGISTRATION

  #ifdef GEN_PASS_REGISTRATION_Pass1
  ::mlir::registerPass("flag1", ...
  #endif
  #ifdef GEN_PASS_REGISTRATION_Pass1
  ::mlir::registerPass("flag2", ...
  #endif

That way the generated code can be included by defining the
`GEN_PASS_REGISTRATION` macro as currenty and register all the passes,
but one can also define only `GEN_PASS_REGISTRATION_Pass1` to register a
subset of the passes.

Differential Revision: https://reviews.llvm.org/D77322
2020-04-02 18:58:47 +00:00
..
mlir-cpu-runner [MLIR] Do not link mlir-cpu-runner with X86 libs 2020-03-11 11:35:59 -07:00
mlir-cuda-runner Fix all-reduce int tests by host-registering memrefs. 2020-03-23 11:48:13 +01:00
mlir-opt Remove linking all targets from `mlir-opt` (NFC) 2020-04-01 17:21:07 +00:00
mlir-shlib [MLIR] Add support for libMLIR.so 2020-03-06 13:25:18 -08:00
mlir-tblgen Change pass registration generated code to allow users to selectively register passes 2020-04-02 18:58:47 +00:00
mlir-translate Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
mlir-vulkan-runner [mlir] NFC: fix trivial typo in source files 2020-03-28 10:12:49 +09:00
CMakeLists.txt [mlir] Fix cross compiling MLIR 2020-03-14 19:18:40 +00:00