Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions llvm/include/llvm/IR/RuntimeLibcalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@ struct RuntimeLibcallsInfo {
return true;
}

static bool darwinHasMemsetPattern(const Triple &TT) {
// memset_pattern{4,8,16} is only available on iOS 3.0 and Mac OS X 10.5 and
// later. All versions of watchOS support it.
if (TT.isMacOSX())
return !TT.isMacOSXVersionLT(10, 5);
if (TT.isiOS())
return !TT.isOSVersionLT(3, 0);
return TT.isWatchOS();
}

static bool hasAEABILibcalls(const Triple &TT) {
return TT.isTargetAEABI() || TT.isTargetGNUAEABI() ||
TT.isTargetMuslAEABI() || TT.isOSFuchsia() || TT.isAndroid();
Expand Down
Loading
Loading