summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2019-02-28 17:08:26 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2019-02-28 17:08:26 +0000
commitfd2c5c05fc8f5a2df9f93ef2cd44aab75be176be (patch)
treef71937292ced4101676819ec28809cdae3c22b4c /clang/lib
parent586187639af23ec622598e1f97f2e514a5d91365 (diff)
downloadbcm5719-llvm-fd2c5c05fc8f5a2df9f93ef2cd44aab75be176be.tar.gz
bcm5719-llvm-fd2c5c05fc8f5a2df9f93ef2cd44aab75be176be.zip
Partial revert of r353952: [HIP] Handle compile -m options and propagate into LLC
Remove comments and tests about passing -mcode-object-v3 to driver since it does not work. Other -m options are OK. Also put back -mattr=-code-object-v3 since HIP is still not ready for code object v3. Differential Revision: https://reviews.llvm.org/D57977 llvm-svn: 355106
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Driver/ToolChains/HIP.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/ToolChains/HIP.cpp b/clang/lib/Driver/ToolChains/HIP.cpp
index e0810de9cdc..10be27c354e 100644
--- a/clang/lib/Driver/ToolChains/HIP.cpp
+++ b/clang/lib/Driver/ToolChains/HIP.cpp
@@ -159,7 +159,7 @@ const char *AMDGCN::Linker::constructLlcCommand(
llvm::StringRef OutputFilePrefix, const char *InputFileName) const {
// Construct llc command.
ArgStringList LlcArgs{InputFileName, "-mtriple=amdgcn-amd-amdhsa",
- "-filetype=obj",
+ "-filetype=obj", "-mattr=-code-object-v3",
Args.MakeArgString("-mcpu=" + SubArchName)};
// Extract all the -m options
@@ -167,7 +167,7 @@ const char *AMDGCN::Linker::constructLlcCommand(
handleTargetFeaturesGroup(
Args, Features, options::OPT_m_amdgpu_Features_Group);
- // Add features to mattr such as code-object-v3 and xnack
+ // Add features to mattr such as xnack
std::string MAttrString = "-mattr=";
for(auto OneFeature : Features) {
MAttrString.append(Args.MakeArgString(OneFeature));
OpenPOWER on IntegriCloud