[libc] Support basic 'complex.h' functionality on GPUs (#189999)

Summary:
This PR adds the basic complex functions needed by some targets. This is
an attempt to provide the standard interface needed by
'https://github.com/llvm/llvm-project/pull/187831'
This commit is contained in:
Joseph Huber 2026-04-01 13:27:24 -05:00 committed by GitHub
parent 573935d7b3
commit b5745e1e28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 30 additions and 0 deletions

View File

@ -279,6 +279,20 @@ set(TARGET_LIBC_ENTRYPOINTS
)
set(TARGET_LIBM_ENTRYPOINTS
# complex.h entrypoints
libc.src.complex.creal
libc.src.complex.crealf
libc.src.complex.creall
libc.src.complex.cimag
libc.src.complex.cimagf
libc.src.complex.cimagl
libc.src.complex.conj
libc.src.complex.conjf
libc.src.complex.conjl
libc.src.complex.cproj
libc.src.complex.cprojf
libc.src.complex.cprojl
# math.h entrypoints
libc.src.math.acos
libc.src.math.acosf

View File

@ -1,6 +1,7 @@
set(TARGET_PUBLIC_HEADERS
libc.include.assert
libc.include.ctype
libc.include.complex
libc.include.string
libc.include.strings
libc.include.signal

View File

@ -279,6 +279,20 @@ set(TARGET_LIBC_ENTRYPOINTS
)
set(TARGET_LIBM_ENTRYPOINTS
# complex.h entrypoints
libc.src.complex.creal
libc.src.complex.crealf
libc.src.complex.creall
libc.src.complex.cimag
libc.src.complex.cimagf
libc.src.complex.cimagl
libc.src.complex.conj
libc.src.complex.conjf
libc.src.complex.conjl
libc.src.complex.cproj
libc.src.complex.cprojf
libc.src.complex.cprojl
# math.h entrypoints
libc.src.math.acos
libc.src.math.acosf

View File

@ -1,6 +1,7 @@
set(TARGET_PUBLIC_HEADERS
libc.include.assert
libc.include.ctype
libc.include.complex
libc.include.string
libc.include.strings
libc.include.signal