mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
TargetLibraryInfo: Disable memcpy and memset on R600
There are no implementations of these for R600. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -378,7 +378,16 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
|
||||
llvm_unreachable("TargetLibraryInfo function names must be sorted");
|
||||
}
|
||||
#endif // !NDEBUG
|
||||
|
||||
|
||||
// There are no library implementations of mempcy and memset for r600 and
|
||||
// these can be difficult to lower in the backend.
|
||||
if (T.getArch() == Triple::r600) {
|
||||
TLI.setUnavailable(LibFunc::memcpy);
|
||||
TLI.setUnavailable(LibFunc::memset);
|
||||
TLI.setUnavailable(LibFunc::memset_pattern16);
|
||||
return;
|
||||
}
|
||||
|
||||
// memset_pattern16 is only available on iOS 3.0 and Mac OS X 10.5 and later.
|
||||
if (T.isMacOSX()) {
|
||||
if (T.isMacOSXVersionLT(10, 5))
|
||||
|
Reference in New Issue
Block a user