projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a25fd5
)
R600/SI: Add check for amdgcn triple forgotten in r225276.
author
Tom Stellard
<thomas.stellard@amd.com>
Wed, 7 Jan 2015 01:17:37 +0000
(
01:17
+0000)
committer
Tom Stellard
<thomas.stellard@amd.com>
Wed, 7 Jan 2015 01:17:37 +0000
(
01:17
+0000)
llvm-svn: 225331
llvm/lib/Target/TargetLibraryInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/TargetLibraryInfo.cpp
b/llvm/lib/Target/TargetLibraryInfo.cpp
index
bca56b5
..
c0abdbd
100644
(file)
--- a/
llvm/lib/Target/TargetLibraryInfo.cpp
+++ b/
llvm/lib/Target/TargetLibraryInfo.cpp
@@
-389,9
+389,10
@@
static void initialize(TargetLibraryInfo &TLI, const Triple &T,
}
#endif // !NDEBUG
- // There are no library implementations of mempcy and memset for
r600
and
+ // There are no library implementations of mempcy and memset for
AMD gpus
and
// these can be difficult to lower in the backend.
- if (T.getArch() == Triple::r600) {
+ if (T.getArch() == Triple::r600 ||
+ T.getArch() == Triple::amdgcn) {
TLI.setUnavailable(LibFunc::memcpy);
TLI.setUnavailable(LibFunc::memset);
TLI.setUnavailable(LibFunc::memset_pattern16);