This is an archive of the discontinued LLVM Phabricator instance.

[libc] Move type definitions to their own self contained header files.
ClosedPublic

Authored by sivachandra on Jan 13 2022, 10:55 PM.

Diff Detail

Event Timeline

sivachandra created this revision.Jan 13 2022, 10:55 PM
sivachandra requested review of this revision.Jan 13 2022, 10:55 PM
sivachandra added inline comments.Jan 13 2022, 11:02 PM
libc/config/linux/api.td
11

I will do this in a follow up change. I picked 5 of the simple types to switch over to the new way in the change to showcase the new way.

michaelrj added inline comments.
libc/include/llvm-libc-types/float_t.h
10

should be __need_float_t

Treat the type headers as normal headers without requiring any __need* macros.

Remove __need_* macros from api.td.

This revision is now accepted and ready to land.Jan 19 2022, 11:00 AM
libc/include/__llvm-libc-stdc-types.h