[llvm-commits] [llvm] r145468 - in /llvm/trunk: include/llvm/Target/TargetLibraryInfo.h lib/Target/TargetLibraryInfo.cpp
Chad Rosier
mcrosier at apple.com
Tue Nov 29 17:51:49 PST 2011
Author: mcrosier
Date: Tue Nov 29 19:51:49 2011
New Revision: 145468
URL: http://llvm.org/viewvc/llvm-project?rev=145468&view=rev
Log:
Alphabetize TargetLibraryInfo enum and fix doxygen comments. No functional
change intended.
Modified:
llvm/trunk/include/llvm/Target/TargetLibraryInfo.h
llvm/trunk/lib/Target/TargetLibraryInfo.cpp
Modified: llvm/trunk/include/llvm/Target/TargetLibraryInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLibraryInfo.h?rev=145468&r1=145467&r2=145468&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLibraryInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLibraryInfo.h Tue Nov 29 19:51:49 2011
@@ -18,43 +18,43 @@
namespace LibFunc {
enum Func {
- /// void *memset(void *b, int c, size_t len);
- memset,
-
- // void *memcpy(void *s1, const void *s2, size_t n);
+ /// int fiprintf(FILE *stream, const char *format, ...);
+ fiprintf,
+
+ /// int fputs(const char *s, FILE *stream);
+ fputs,
+
+ /// size_t fwrite(const void *ptr, size_t size, size_t nitems,
+ /// FILE *stream);
+ fwrite,
+
+ /// int iprintf(const char *format, ...);
+ iprintf,
+
+ /// void *memcpy(void *s1, const void *s2, size_t n);
memcpy,
- // void *memmove(void *s1, const void *s2, size_t n);
+ /// void *memmove(void *s1, const void *s2, size_t n);
memmove,
+ /// void *memset(void *b, int c, size_t len);
+ memset,
+
/// void memset_pattern16(void *b, const void *pattern16, size_t len);
memset_pattern16,
- /// int iprintf(const char *format, ...);
- iprintf,
-
/// int siprintf(char *str, const char *format, ...);
siprintf,
/// double sqrt(double x);
sqrt,
- /// long double sqrtl(long double x);
- sqrtl,
-
/// float sqrtf(float x);
sqrtf,
-
- /// int fiprintf(FILE *stream, const char *format, ...);
- fiprintf,
-
- // size_t fwrite(const void *ptr, size_t size, size_t nitems,
- // FILE *stream);
- fwrite,
-
- // int fputs(const char *s, FILE *stream);
- fputs,
+ /// long double sqrtl(long double x);
+ sqrtl,
+
NumLibFuncs
};
}
Modified: llvm/trunk/lib/Target/TargetLibraryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLibraryInfo.cpp?rev=145468&r1=145467&r2=145468&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLibraryInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetLibraryInfo.cpp Tue Nov 29 19:51:49 2011
@@ -22,18 +22,18 @@
const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
{
- "memset",
+ "fiprintf",
+ "fputs",
+ "fwrite",
+ "iprintf",
"memcpy",
"memmove",
+ "memset",
"memset_pattern16",
- "iprintf",
"siprintf",
"sqrt",
- "sqrtl",
"sqrtf",
- "fiprintf",
- "fwrite",
- "fputs"
+ "sqrtl"
};
/// initialize - Initialize the set of available library functions based on the
More information about the llvm-commits
mailing list