Skip to content

Commit

Permalink
Revert "Add mlir flag to driver to offload entire module to mlir (#3497
Browse files Browse the repository at this point in the history
…)" (#3508)

This reverts commit 5ac8d4e.
  • Loading branch information
pfultz2 authored Oct 5, 2024
1 parent 6367571 commit b923336
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 81 deletions.
1 change: 0 additions & 1 deletion src/driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ add_executable(driver
main.cpp
verify.cpp
passes.cpp
mlir.cpp
models.cpp
perf.cpp
marker_roctx.cpp
Expand Down
5 changes: 0 additions & 5 deletions src/driver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "verify_options.hpp"
#include "argument_parser.hpp"
#include "command.hpp"
#include "mlir.hpp"
#include "precision.hpp"
#include "passes.hpp"
#include "perf.hpp"
Expand Down Expand Up @@ -78,7 +77,6 @@ struct loader
bool is_test = false;
unsigned trim = 0;
bool optimize = false;
bool mlir = false;
bool skip_unknown_operators = false;
bool brief = false;
std::string output_type;
Expand Down Expand Up @@ -142,7 +140,6 @@ struct loader
ap.append(),
ap.nargs(2));
ap(optimize, {"--optimize", "-O"}, ap.help("Optimize when reading"), ap.set_value(true));
ap(mlir, {"--mlir"}, ap.help("Offload everything to mlir"), ap.set_value(true));
ap(passes, {"--apply-pass", "-p"}, ap.help("Passes to apply to model"), ap.append());
ap(output_type,
{"--graphviz", "-g"},
Expand Down Expand Up @@ -377,8 +374,6 @@ struct loader
}
if(not passes.empty())
migraphx::run_passes(p, get_passes(passes));
if(mlir)
offload_to_mlir(p);
return p;
}

Expand Down
59 changes: 0 additions & 59 deletions src/driver/mlir.cpp

This file was deleted.

16 changes: 0 additions & 16 deletions src/driver/mlir.hpp

This file was deleted.

0 comments on commit b923336

Please sign in to comment.