Skip to content

Commit

Permalink
Revert "Implement Pass and Dialect plugins for mlir-opt"
Browse files Browse the repository at this point in the history
This reverts commit e9b4158.

This landed without the right authorship.
  • Loading branch information
joker-eph committed Apr 7, 2023
1 parent e9b4158 commit 713e815
Show file tree
Hide file tree
Showing 22 changed files with 5 additions and 591 deletions.
1 change: 0 additions & 1 deletion mlir/examples/standalone/CMakeLists.txt
Expand Up @@ -52,5 +52,4 @@ if(MLIR_ENABLE_BINDINGS_PYTHON)
endif()
add_subdirectory(test)
add_subdirectory(standalone-opt)
add_subdirectory(standalone-plugin)
add_subdirectory(standalone-translate)
4 changes: 0 additions & 4 deletions mlir/examples/standalone/include/Standalone/CMakeLists.txt
@@ -1,7 +1,3 @@
add_mlir_dialect(StandaloneOps standalone)
add_mlir_doc(StandaloneDialect StandaloneDialect Standalone/ -gen-dialect-doc)
add_mlir_doc(StandaloneOps StandaloneOps Standalone/ -gen-op-doc)

set(LLVM_TARGET_DEFINITIONS StandalonePasses.td)
mlir_tablegen(StandalonePasses.h.inc --gen-pass-decls)
add_public_tablegen_target(MLIRStandalonePassesIncGen)
26 changes: 0 additions & 26 deletions mlir/examples/standalone/include/Standalone/StandalonePasses.h

This file was deleted.

30 changes: 0 additions & 30 deletions mlir/examples/standalone/include/Standalone/StandalonePasses.td

This file was deleted.

3 changes: 0 additions & 3 deletions mlir/examples/standalone/lib/Standalone/CMakeLists.txt
Expand Up @@ -2,17 +2,14 @@ add_mlir_dialect_library(MLIRStandalone
StandaloneTypes.cpp
StandaloneDialect.cpp
StandaloneOps.cpp
StandalonePasses.cpp

ADDITIONAL_HEADER_DIRS
${PROJECT_SOURCE_DIR}/include/Standalone

DEPENDS
MLIRStandaloneOpsIncGen
MLIRStandalonePassesIncGen

LINK_LIBS PUBLIC
MLIRIR
MLIRInferTypeOpInterface
MLIRFuncDialect
)
48 changes: 0 additions & 48 deletions mlir/examples/standalone/lib/Standalone/StandalonePasses.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions mlir/examples/standalone/standalone-opt/standalone-opt.cpp
Expand Up @@ -21,11 +21,9 @@
#include "llvm/Support/ToolOutputFile.h"

#include "Standalone/StandaloneDialect.h"
#include "Standalone/StandalonePasses.h"

int main(int argc, char **argv) {
mlir::registerAllPasses();
mlir::standalone::registerPasses();
// TODO: Register standalone passes here.

mlir::DialectRegistry registry;
Expand Down
22 changes: 0 additions & 22 deletions mlir/examples/standalone/standalone-plugin/CMakeLists.txt

This file was deleted.

39 changes: 0 additions & 39 deletions mlir/examples/standalone/standalone-plugin/standalone-plugin.cpp

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions mlir/examples/standalone/test/Standalone/standalone-plugin.mlir

This file was deleted.

4 changes: 0 additions & 4 deletions mlir/examples/standalone/test/lit.cfg.py
Expand Up @@ -44,16 +44,12 @@
# test_exec_root: The root path where tests should be run.
config.test_exec_root = os.path.join(config.standalone_obj_root, 'test')
config.standalone_tools_dir = os.path.join(config.standalone_obj_root, 'bin')
config.standalone_libs_dir = os.path.join(config.standalone_obj_root, 'lib')

config.substitutions.append(('%standalone_libs', config.standalone_libs_dir))

# Tweak the PATH to include the tools dir.
llvm_config.with_environment('PATH', config.llvm_tools_dir, append_path=True)

tool_dirs = [config.standalone_tools_dir, config.llvm_tools_dir]
tools = [
'mlir-opt',
'standalone-capi-test',
'standalone-opt',
'standalone-translate',
Expand Down
106 changes: 0 additions & 106 deletions mlir/include/mlir/Tools/Plugins/DialectPlugin.h

This file was deleted.

0 comments on commit 713e815

Please sign in to comment.