summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2011-03-03 13:17:51 +0000
committerRichard Osborne <richard@xmos.com>2011-03-03 13:17:51 +0000
commit3649824bec09768cbdee7aa7cfbbcdd865373626 (patch)
treeaa1aee521af7f6df2bab2c11622fe94c257c6070 /include
parent49d7999b89759a1b58180fec9c491ba05204c95c (diff)
downloadllvm-3649824bec09768cbdee7aa7cfbbcdd865373626.tar.gz
llvm-3649824bec09768cbdee7aa7cfbbcdd865373626.tar.bz2
llvm-3649824bec09768cbdee7aa7cfbbcdd865373626.tar.xz
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h
index bdd214b6b7..bc119e11cb 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
};
}