Reviewers: abrachet
Differential Revision: https://reviews.llvm.org/D76783
--- /dev/null
+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,
+ ];
+}
// 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">;