[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / spec / llvm_libc_ext.td
blob5e1ae2cfd060d5a1a2f7928622001f0caa93b7a9
1 def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
2   HeaderSpec Strings = HeaderSpec<
3       "strings.h",
4       [], // Macros
5       [], // Types
6       [], // Enumerations
7       [
8           FunctionSpec<
9               "bcopy",
10               RetValSpec<VoidType>,
11               [ArgSpec<ConstVoidPtr>, ArgSpec<VoidPtr>, ArgSpec<SizeTType>]
12           >,
13           FunctionSpec<
14               "bzero",
15               RetValSpec<VoidType>,
16               [ArgSpec<VoidPtr>, ArgSpec<SizeTType>]
17           >,
18           FunctionSpec<
19               "bcmp",
20               RetValSpec<IntType>,
21               [ArgSpec<ConstVoidPtr>, ArgSpec<ConstVoidPtr>, ArgSpec<SizeTType>]
22           >,
23       ]
24   >;
26   HeaderSpec Assert = HeaderSpec<
27       "assert.h",
28       [], // Macros
29       [], // Types
30       [], // Enumerations
31       [
32           FunctionSpec<
33               "__assert_fail",
34               RetValSpec<NoReturn>,
35               [ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<UnsignedType>, ArgSpec<ConstCharPtr>]
36           >,
37       ]
38   >;
39   
40   HeaderSpec Sched = HeaderSpec<
41       "sched.h",
42       [], // Macros
43       [PidT, SizeTType, CpuSetT], // Types
44       [], // Enumerations
45       [
46         FunctionSpec<
47             "__sched_getcpucount",
48             RetValSpec<IntType>,
49             [ArgSpec<SizeTType>, ArgSpec<ConstCpuSetPtr>]
50         >,
51       ]
52   >;
54   let Headers = [
55     Strings,
56     Sched,
57     Assert,
58   ];