mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
c8f79892af
Differential Revision: https://reviews.llvm.org/D108225
66 lines
1.3 KiB
TableGen
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,
|
|
];
|
|
}
|