diff options
author | Richard Osborne <richard@xmos.com> | 2011-03-03 13:17:51 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-03-03 13:17:51 +0000 |
commit | 3649824bec09768cbdee7aa7cfbbcdd865373626 (patch) | |
tree | aa1aee521af7f6df2bab2c11622fe94c257c6070 /include | |
parent | 49d7999b89759a1b58180fec9c491ba05204c95c (diff) | |
download | external_llvm-3649824bec09768cbdee7aa7cfbbcdd865373626.zip external_llvm-3649824bec09768cbdee7aa7cfbbcdd865373626.tar.gz external_llvm-3649824bec09768cbdee7aa7cfbbcdd865373626.tar.bz2 |
Optimize printf -> iprintf if there are no floating point arguments
and iprintf is available on the target. Currently iprintf is only
marked as being available on the XCore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126935 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 bdd214b..bc119e1 100644 --- a/include/llvm/Target/TargetLibraryInfo.h +++ b/include/llvm/Target/TargetLibraryInfo.h @@ -26,6 +26,9 @@ namespace llvm { /// void memset_pattern16(void *b, const void *pattern16, size_t len); memset_pattern16, + /// int iprintf(const char *format, ...); + iprintf, + NumLibFuncs }; } |