This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
Per spec: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ntohl.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/ntohs.html Co-authored-by: Jeff Bailey <jbailey@google.com> Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D144506
Per spec: * https://pubs.opengroup.org/onlinepubs/9699919799/functions/htonl.html * https://pubs.opengroup.org/onlinepubs/9699919799/functions/htons.html Also adds UInt16Type and UInt32Type to spec.td Co-authored-by: Jeff Bailey <jbailey@google.com> Reviewed By: sivachandra, jeffbailey, rtenneti Differential Revision: https://reviews.llvm.org/D143795