mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
[libc] Add a GNU extensions spec containing sincosf from math.h.
Reviewers: abrachet Differential Revision: https://reviews.llvm.org/D76783
This commit is contained in:
19
libc/spec/gnu_ext.td
Normal file
19
libc/spec/gnu_ext.td
Normal file
@@ -0,0 +1,19 @@
|
||||
def GnuExtensions : StandardSpec<"GNUExtensions"> {
|
||||
HeaderSpec Math = HeaderSpec<
|
||||
"math.h",
|
||||
[], // Macros
|
||||
[], // Types
|
||||
[], // Enumerations
|
||||
[
|
||||
FunctionSpec<
|
||||
"sincosf",
|
||||
RetValSpec<VoidType>,
|
||||
[ArgSpec<FloatType>, ArgSpec<FloatPtr>, ArgSpec<FloatPtr>]
|
||||
>,
|
||||
]
|
||||
>;
|
||||
|
||||
let Headers = [
|
||||
Math,
|
||||
];
|
||||
}
|
||||
@@ -47,6 +47,7 @@ def CharType : NamedType<"char">;
|
||||
// Common types
|
||||
def VoidPtr : PtrType<VoidType>;
|
||||
def SizeTType : NamedType<"size_t">;
|
||||
def FloatPtr : PtrType<FloatType>;
|
||||
|
||||
// _Noreturn is really not a type, but it is convenient to treat it as a type.
|
||||
def NoReturn : NamedType<"_Noreturn void">;
|
||||
|
||||
Reference in New Issue
Block a user