diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2016-03-08 00:02:50 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2016-03-08 00:02:50 +0000 |
| commit | 447f852aa93e376d3cfbba246c7a62603c51d3ff (patch) | |
| tree | b6787b592d0329aacba3c46194822846c74ac9a9 /llvm/tools/llvm-config/llvm-config.cpp | |
| parent | c1efa64c631c41579ea7dea3c5b0b7d46403e5ba (diff) | |
| download | bcm5719-llvm-447f852aa93e376d3cfbba246c7a62603c51d3ff.tar.gz bcm5719-llvm-447f852aa93e376d3cfbba246c7a62603c51d3ff.zip | |
[llvm-config] Teach llvm-config about global-isel.
llvm-config can know tell whether or not a build has been configured to support
global-isel.
Use '--has-global-isel' for that.
llvm-svn: 262877
Diffstat (limited to 'llvm/tools/llvm-config/llvm-config.cpp')
| -rw-r--r-- | llvm/tools/llvm-config/llvm-config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp index e5b121006f5..76a40da4960 100644 --- a/llvm/tools/llvm-config/llvm-config.cpp +++ b/llvm/tools/llvm-config/llvm-config.cpp @@ -211,6 +211,7 @@ Options:\n\ --assertion-mode Print assertion mode of LLVM tree (ON or OFF).\n\ --build-system Print the build system used to build LLVM (autoconf or cmake).\n\ --has-rtti Print whether or not LLVM was built with rtti (YES or NO).\n\ + --has-global-isel Print whether or not LLVM was built with global-isel support (YES or NO).\n\ --shared-mode Print how the provided components can be collectively linked (`shared` or `static`).\n\ --link-shared Link the components as shared libraries.\n\ --link-static Link the component libraries statically.\n\ @@ -559,6 +560,8 @@ int main(int argc, char **argv) { OS << LLVM_BUILD_SYSTEM << '\n'; } else if (Arg == "--has-rtti") { OS << LLVM_HAS_RTTI << '\n'; + } else if (Arg == "--has-global-isel") { + OS << LLVM_HAS_GLOBAL_ISEL << '\n'; } else if (Arg == "--shared-mode") { PrintSharedMode = true; } else if (Arg == "--obj-root") { |

