llvm-capstone/libc/spec/llvm_libc_ext.td
2021-08-19 17:55:16 +00:00

66 lines
1.3 KiB
TableGen

def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
HeaderSpec String = HeaderSpec<
"string.h",
[], // Macros
[], // Types
[], // Enumerations
[
FunctionSpec<
"bzero",
RetValSpec<VoidType>,
[ArgSpec<VoidPtr>, ArgSpec<SizeTType>]
>,
]
>;
HeaderSpec String = HeaderSpec<
"string.h",
[], // Macros
[], // Types
[], // Enumerations
[
FunctionSpec<
"bcmp",
RetValSpec<IntType>,
[ArgSpec<ConstVoidPtr>, ArgSpec<ConstVoidPtr>, ArgSpec<SizeTType>]
>,
]
>;
HeaderSpec Assert = HeaderSpec<
"assert.h",
[], // Macros
[], // Types
[], // Enumerations
[
FunctionSpec<
"__assert_fail",
RetValSpec<NoReturn>,
[ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<UnsignedType>, ArgSpec<ConstCharPtr>]
>,
]
>;
HeaderSpec Errno = HeaderSpec<
"errno.h",
[], // Macros
[], // Types
[], // Enumerations
[
FunctionSpec<
"__errno_location",
RetValSpec<IntPtr>,
[ArgSpec<VoidType>]
>,
]
>;
let Headers = [
String,
Assert,
Errno,
];
}