STT-tensorflow/third_party/mlir/mlir-auto-init.cpp
Adrian Kuegel 5d1b37c014 Move automatic pass registration to mlir-auto-init.cpp.
PiperOrigin-RevId: 300706581
Change-Id: Iebd5dfc04de5177220b97f6bdada90e7c26a33f8
2020-03-13 00:46:41 -07:00

15 lines
295 B
C++

#include "mlir/InitAllDialects.h"
#include "mlir/InitAllPasses.h"
namespace mlir {
// This target is a convenient dependency for users to auto-initialize MLIR
// internals.
static bool auto_init = []() {
registerAllDialects();
registerAllPasses();
return true;
}();
} // namespace mlir