mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add a couple of more functions that cannot access memory (the intrinsics) and
don't write to memory git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ede6ac60a5
commit
b903fc5c1b
@ -606,6 +606,9 @@ namespace {
|
|||||||
// Note that this list cannot contain libm functions (such as acos and sqrt)
|
// Note that this list cannot contain libm functions (such as acos and sqrt)
|
||||||
// that set errno on a domain or other error.
|
// that set errno on a domain or other error.
|
||||||
static const char *DoesntAccessMemoryTable[] = {
|
static const char *DoesntAccessMemoryTable[] = {
|
||||||
|
// LLVM intrinsics:
|
||||||
|
"llvm.frameaddress", "llvm.returnaddress", "llvm.readport",
|
||||||
|
|
||||||
"abs", "labs", "llabs", "imaxabs", "fabs", "fabsf", "fabsl",
|
"abs", "labs", "llabs", "imaxabs", "fabs", "fabsf", "fabsl",
|
||||||
"trunc", "truncf", "truncl", "ldexp",
|
"trunc", "truncf", "truncl", "ldexp",
|
||||||
|
|
||||||
@ -685,6 +688,10 @@ static const char *OnlyReadsMemoryTable[] = {
|
|||||||
|
|
||||||
// C99
|
// C99
|
||||||
"nan", "nanf", "nand",
|
"nan", "nanf", "nand",
|
||||||
|
|
||||||
|
// File I/O
|
||||||
|
"feof", "ferror", "fileno",
|
||||||
|
"feof_unlocked", "ferror_unlocked", "fileno_unlocked"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned ORMTableSize =
|
static const unsigned ORMTableSize =
|
||||||
|
Loading…
Reference in New Issue
Block a user