Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlir-cpu-runner] Add support for
-mattr
and -march
flags
This patch adds support for `-mattr` and `-march` in mlir-cpu-runner. With this change, one should be able to consistently use mlir-cpu-runner for MLIR's integration tests (instead of e.g. resorting to lli when some additional flags are needed). This is demonstrated in concatenate_dim_1.mlir. In order to support the new flags, this patch makes sure that MLIR's ExecutionEngine/JITRunner (that mlir-cpu-runner is built on top of): * takes into account the new command line flags when creating TargetMachine, * avoids recreating TargetMachine if one is already available, * creates LLVM's DataLayout based on the previously configured TargetMachine. This is necessary in order to make sure that the command line configuration is propagated correctly to the backend code generator. A few additional updates are made in order to facilitate this change, including support for debug dumps from JITRunner. Differential Revision: https://reviews.llvm.org/D146917
- Loading branch information
1 parent
302a6eb
commit fb0b035
Showing
7 changed files
with
147 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.