mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
R600/SI: Add check for amdgcn triple forgotten in r225276.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72a9513e92
commit
d83c5959f8
@ -389,9 +389,10 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
|
|||||||
}
|
}
|
||||||
#endif // !NDEBUG
|
#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.
|
// 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::memcpy);
|
||||||
TLI.setUnavailable(LibFunc::memset);
|
TLI.setUnavailable(LibFunc::memset);
|
||||||
TLI.setUnavailable(LibFunc::memset_pattern16);
|
TLI.setUnavailable(LibFunc::memset_pattern16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user