dc1b614bb8
Traditionally these functions are exposed in string*s*.h not string.h Differential Revision: https://reviews.llvm.org/D141237
60 lines
1.4 KiB
TableGen
60 lines
1.4 KiB
TableGen
def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
|
|
HeaderSpec Strings = HeaderSpec<
|
|
"strings.h",
|
|
[], // Macros
|
|
[], // Types
|
|
[], // Enumerations
|
|
[
|
|
FunctionSpec<
|
|
"bcopy",
|
|
RetValSpec<VoidType>,
|
|
[ArgSpec<ConstVoidPtr>, ArgSpec<VoidPtr>, ArgSpec<SizeTType>]
|
|
>,
|
|
FunctionSpec<
|
|
"bzero",
|
|
RetValSpec<VoidType>,
|
|
[ArgSpec<VoidPtr>, ArgSpec<SizeTType>]
|
|
>,
|
|
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 Sched = HeaderSpec<
|
|
"sched.h",
|
|
[], // Macros
|
|
[PidT, SizeTType, CpuSetT], // Types
|
|
[], // Enumerations
|
|
[
|
|
FunctionSpec<
|
|
"__sched_getcpucount",
|
|
RetValSpec<IntType>,
|
|
[ArgSpec<SizeTType>, ArgSpec<ConstCpuSetPtr>]
|
|
>,
|
|
]
|
|
>;
|
|
|
|
let Headers = [
|
|
Strings,
|
|
Sched,
|
|
Assert,
|
|
];
|
|
}
|