[Mlir-commits] [mlir] a3ef105 - Remove the use of global dialect registration from the standalone-translate.cpp example (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Aug 25 22:14:15 PDT 2020
Author: Mehdi Amini
Date: 2020-08-26T05:14:04Z
New Revision: a3ef1054fd5ba3177e2fe33d45e40de00b79f1f0
URL: https://github.com/llvm/llvm-project/commit/a3ef1054fd5ba3177e2fe33d45e40de00b79f1f0
DIFF: https://github.com/llvm/llvm-project/commit/a3ef1054fd5ba3177e2fe33d45e40de00b79f1f0.diff
LOG: Remove the use of global dialect registration from the standalone-translate.cpp example (NFC)
Added:
Modified:
mlir/examples/standalone/standalone-translate/standalone-translate.cpp
Removed:
################################################################################
diff --git a/mlir/examples/standalone/standalone-translate/standalone-translate.cpp b/mlir/examples/standalone/standalone-translate/standalone-translate.cpp
index c81e8dc14bc2..7ccad3b4ee2b 100644
--- a/mlir/examples/standalone/standalone-translate/standalone-translate.cpp
+++ b/mlir/examples/standalone/standalone-translate/standalone-translate.cpp
@@ -48,10 +48,8 @@ static llvm::cl::opt<bool> verifyDiagnostics(
llvm::cl::init(false));
int main(int argc, char **argv) {
- mlir::registerAllDialects();
mlir::registerAllTranslations();
- mlir::registerDialect<mlir::standalone::StandaloneDialect>();
// TODO: Register standalone translations here.
llvm::InitLLVM y(argc, argv);
More information about the Mlir-commits
mailing list