aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-11-15 23:14:23 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-11-15 23:14:23 +0000
commitaf7b5d7092a897baa05e18736e106d2890a54d11 (patch)
tree786bf3836553997d9c27cdf7f399a4c4befa2d89 /llvm/lib
parent20cd5f2e208ac9f047da6680a21c24acbc66aac4 (diff)
downloadllvm-af7b5d7092a897baa05e18736e106d2890a54d11.zip
llvm-af7b5d7092a897baa05e18736e106d2890a54d11.tar.gz
llvm-af7b5d7092a897baa05e18736e106d2890a54d11.tar.bz2
AMDHSA: More code object v3 fixes:
- Make sure IsaInfo::hasCodeObjectV3 returns true only for AMDHSA - Update assembler metadata tests to use v2 by default llvm-svn: 347001
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
index 634ec8f..fc1e712 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -159,7 +159,8 @@ void streamIsaVersion(const MCSubtargetInfo *STI, raw_ostream &Stream) {
}
bool hasCodeObjectV3(const MCSubtargetInfo *STI) {
- return STI->getFeatureBits().test(FeatureCodeObjectV3);
+ return STI->getTargetTriple().getOS() == Triple::AMDHSA &&
+ STI->getFeatureBits().test(FeatureCodeObjectV3);
}
unsigned getWavefrontSize(const MCSubtargetInfo *STI) {