Mercurial > hg > CbC > CbC_llvm
view libc/spec/llvm_libc_ext.td @ 240:ca573705d418
merge
author | matac |
---|---|
date | Fri, 28 Jul 2023 20:50:09 +0900 |
parents | c4bab56944e8 |
children | 1f2b6ac9f198 |
line wrap: on
line source
def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> { HeaderSpec String = HeaderSpec< "string.h", [], // Macros [], // Types [], // Enumerations [ 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 = [ String, Sched, Assert, ]; }