mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
Add a couple of more functions that cannot access memory (the intrinsics) and
don't write to memory llvm-svn: 12808
This commit is contained in:
parent
1676188024
commit
474637518d
@ -606,6 +606,9 @@ namespace {
|
||||
// Note that this list cannot contain libm functions (such as acos and sqrt)
|
||||
// that set errno on a domain or other error.
|
||||
static const char *DoesntAccessMemoryTable[] = {
|
||||
// LLVM intrinsics:
|
||||
"llvm.frameaddress", "llvm.returnaddress", "llvm.readport",
|
||||
|
||||
"abs", "labs", "llabs", "imaxabs", "fabs", "fabsf", "fabsl",
|
||||
"trunc", "truncf", "truncl", "ldexp",
|
||||
|
||||
@ -685,6 +688,10 @@ static const char *OnlyReadsMemoryTable[] = {
|
||||
|
||||
// C99
|
||||
"nan", "nanf", "nand",
|
||||
|
||||
// File I/O
|
||||
"feof", "ferror", "fileno",
|
||||
"feof_unlocked", "ferror_unlocked", "fileno_unlocked"
|
||||
};
|
||||
|
||||
static const unsigned ORMTableSize =
|
||||
|
Loading…
x
Reference in New Issue
Block a user