[libc] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templat
[libc] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templated functions, or structs defined in /spec, werenot updated and had to be handled manually.Reviewed By: sivachandra, lntueDifferential Revision: https://reviews.llvm.org/D114302
show more ...
[libc][nfc] move ctype_utils and FPUtils to __supportSome ctype functions are called from other libc functions (e.g. isspaceis used in atoi). By moving ctype_utils.h to __support it becomes easier
[libc][nfc] move ctype_utils and FPUtils to __supportSome ctype functions are called from other libc functions (e.g. isspaceis used in atoi). By moving ctype_utils.h to __support it becomes easierto include just the implementations of these functions. For thesereasons the implementation for isspace was moved intoctype_utils as well.FPUtils was moved to simplify the build order, and to clarify whichfiles are a part of the actual libc.Many files were modified to accomodate these changes, mostly changingthe #include paths.Reviewed By: sivachandraDifferential Revision: https://reviews.llvm.org/D107600
[libc] Normalize LIBC_TARGET_MACHINECurrent implementation defines LIBC_TARGET_MACHINE with the use of CMAKE_SYSTEM_PROCESSOR.Unfortunately CMAKE_SYSTEM_PROCESSOR is OS dependent and can produce d
[libc] Normalize LIBC_TARGET_MACHINECurrent implementation defines LIBC_TARGET_MACHINE with the use of CMAKE_SYSTEM_PROCESSOR.Unfortunately CMAKE_SYSTEM_PROCESSOR is OS dependent and can produce different results.An evidence of this is the various matchers used to detect whether the architecture is x86.This patch normalizes LIBC_TARGET_MACHINE and renames it LIBC_TARGET_ARCHITECTURE.I've added many architectures but we may want to limit ourselves to x86 and ARM.Differential Revision: https://reviews.llvm.org/D101524
[libc][NFC][Obvious] Remove few unnecessary #include directives in tests.
[libc] Match x86 long double NaN classification with that of the compiler.Reviewers: asteinhauserDifferential Revision: https://reviews.llvm.org/D82330