diff options
author | Richard Osborne <richard@xmos.com> | 2011-03-03 14:09:28 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-03-03 14:09:28 +0000 |
commit | 419454ad3720b8cf4613d9e790669c8beaccd1a4 (patch) | |
tree | 4a708cde9e05335c87db1a4b789f94010d66a077 /include | |
parent | 12785e87e88309c1934add000b754eba51a6c391 (diff) | |
download | external_llvm-419454ad3720b8cf4613d9e790669c8beaccd1a4.zip external_llvm-419454ad3720b8cf4613d9e790669c8beaccd1a4.tar.gz external_llvm-419454ad3720b8cf4613d9e790669c8beaccd1a4.tar.bz2 |
Optimize sprintf -> siprintf if there are no floating point arguments
and siprintf is available on the target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLibraryInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h index bc119e1..8474fc5 100644 --- a/include/llvm/Target/TargetLibraryInfo.h +++ b/include/llvm/Target/TargetLibraryInfo.h @@ -29,6 +29,9 @@ namespace llvm { /// int iprintf(const char *format, ...); iprintf, + /// int siprintf(char *str, const char *format, ...); + siprintf, + NumLibFuncs }; } |