A new LLVM libc specific extension standard spec has been added.
include "spec/gnu_ext.td"
include "spec/linux.td"
+include "spec/llvm_libc_ext.td"
include "spec/posix.td"
include "spec/stdc.td"
def StringAPI : PublicAPI<"string.h"> {
let Functions = [
+ "bzero",
"memcpy",
"memmove",
"memcmp",
libc.src.stdlib.abort
# string.h entrypoints
+ libc.src.string.bzero
libc.src.string.memcpy
libc.src.string.strcpy
libc.src.string.strcat
--- /dev/null
+def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
+ HeaderSpec String = HeaderSpec<
+ "string.h",
+ [], // Macros
+ [], // Types
+ [], // Enumerations
+ [
+ FunctionSpec<
+ "bzero",
+ RetValSpec<VoidType>,
+ [ArgSpec<VoidPtr>,
+ ArgSpec<SizeTType>]
+ >,
+ ]
+ >;
+
+ let Headers = [
+ String,
+ ];
+}