]> granicus.if.org Git - clang/commit
[HIP] Handle compile -m options and propagate into LLC
authorAaron Enye Shi <enye.shi@gmail.com>
Tue, 12 Feb 2019 21:21:06 +0000 (21:21 +0000)
committerAaron Enye Shi <enye.shi@gmail.com>
Tue, 12 Feb 2019 21:21:06 +0000 (21:21 +0000)
commit5a9a60b604282258d8f437a58e934c7a26414668
treeaa65b1ceec7745083cb21c47735b52de22378886
parenta0129f30b362434ac1af52d2dabc7b2708c25e9d
[HIP] Handle compile -m options and propagate into LLC

Allow the compile options for -m such as -mxnack/-mno-xnack, -msram-ecc/-mno-sram-ecc, -mcode-object-v3/-mno-code-object-v3 to propagate into LLC args.

Also add lit tests to verify features are properly passed.

Differential Revision: https://reviews.llvm.org/D57977

Reviewers: yaxunl, kzhuravl

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353880 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/HIP.cpp
test/Driver/hip-toolchain-features.hip [new file with mode: 0644]