mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Mark intrinsic functions as llvm-specific.
llvm-svn: 212347
This commit is contained in:
parent
43fb238a1e
commit
37a35454ed
@ -245,6 +245,11 @@ uint32_t IRObjectFile::getSymbolFlags(DataRefImpl Symb) const {
|
||||
Res |= BasicSymbolRef::SF_FormatSpecific;
|
||||
}
|
||||
|
||||
if (auto *F = dyn_cast<Function>(GV)) {
|
||||
if (F->getName().startswith("llvm."))
|
||||
Res |= BasicSymbolRef::SF_FormatSpecific;
|
||||
}
|
||||
|
||||
return Res;
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,13 @@
|
||||
|
||||
target datalayout = "m:o"
|
||||
|
||||
; CHECK-NOT: memcpy
|
||||
; CHECK: T _f
|
||||
; CHECK-NOT: memcpy
|
||||
|
||||
define void @f() {
|
||||
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* null, i8* null, i64 0, i32 1, i1 false)
|
||||
ret void
|
||||
}
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user