[libc-commits] [libc] [libc] rename newhdrgen to just hdrgen (PR #118545)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 3 13:15:03 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

<details>
<summary>Changes</summary>

Link: #<!-- -->117208
Fixes: #<!-- -->117254


---

Patch is 36.64 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/118545.diff


76 Files Affected:

- (modified) libc/CMakeLists.txt (+1-1) 
- (modified) libc/cmake/modules/LLVMLibCHeaderRules.cmake (+2-2) 
- (modified) libc/docs/dev/header_generation.rst (+30-36) 
- (modified) libc/docs/dev/source_tree_layout.rst (+3-3) 
- (added) libc/hdrgen/CMakeLists.txt (+17) 
- (renamed) libc/hdrgen/class_implementation/classes/enumeration.py () 
- (renamed) libc/hdrgen/class_implementation/classes/function.py () 
- (renamed) libc/hdrgen/class_implementation/classes/macro.py () 
- (renamed) libc/hdrgen/class_implementation/classes/object.py () 
- (renamed) libc/hdrgen/class_implementation/classes/type.py () 
- (renamed) libc/hdrgen/gpu_headers.py () 
- (renamed) libc/hdrgen/header.py () 
- (renamed) libc/hdrgen/tests/expected_output/test_header.h () 
- (renamed) libc/hdrgen/tests/input/test_small.h.def () 
- (renamed) libc/hdrgen/tests/input/test_small.yaml () 
- (renamed) libc/hdrgen/tests/test_integration.py (+5-5) 
- (renamed) libc/hdrgen/yaml/arpa/inet.yaml () 
- (renamed) libc/hdrgen/yaml/assert.yaml () 
- (renamed) libc/hdrgen/yaml/ctype.yaml () 
- (renamed) libc/hdrgen/yaml/dirent.yaml () 
- (renamed) libc/hdrgen/yaml/dlfcn.yaml () 
- (renamed) libc/hdrgen/yaml/elf.yaml () 
- (renamed) libc/hdrgen/yaml/errno.yaml () 
- (renamed) libc/hdrgen/yaml/fcntl.yaml () 
- (renamed) libc/hdrgen/yaml/features.yaml () 
- (renamed) libc/hdrgen/yaml/fenv.yaml () 
- (renamed) libc/hdrgen/yaml/float.yaml () 
- (renamed) libc/hdrgen/yaml/gpu/rpc.yaml () 
- (renamed) libc/hdrgen/yaml/inttypes.yaml () 
- (renamed) libc/hdrgen/yaml/limits.yaml () 
- (renamed) libc/hdrgen/yaml/link.yaml () 
- (renamed) libc/hdrgen/yaml/locale.yaml () 
- (renamed) libc/hdrgen/yaml/malloc.yaml () 
- (renamed) libc/hdrgen/yaml/math.yaml () 
- (renamed) libc/hdrgen/yaml/pthread.yaml () 
- (renamed) libc/hdrgen/yaml/sched.yaml () 
- (renamed) libc/hdrgen/yaml/search.yaml () 
- (renamed) libc/hdrgen/yaml/setjmp.yaml () 
- (renamed) libc/hdrgen/yaml/signal.yaml () 
- (renamed) libc/hdrgen/yaml/spawn.yaml () 
- (renamed) libc/hdrgen/yaml/stdbit.yaml () 
- (renamed) libc/hdrgen/yaml/stdckdint.yaml () 
- (renamed) libc/hdrgen/yaml/stdfix.yaml () 
- (renamed) libc/hdrgen/yaml/stdint.yaml () 
- (renamed) libc/hdrgen/yaml/stdio.yaml () 
- (renamed) libc/hdrgen/yaml/stdlib.yaml () 
- (renamed) libc/hdrgen/yaml/string.yaml () 
- (renamed) libc/hdrgen/yaml/strings.yaml () 
- (renamed) libc/hdrgen/yaml/sys/auxv.yaml () 
- (renamed) libc/hdrgen/yaml/sys/epoll.yaml () 
- (renamed) libc/hdrgen/yaml/sys/ioctl.yaml () 
- (renamed) libc/hdrgen/yaml/sys/mman.yaml () 
- (renamed) libc/hdrgen/yaml/sys/prctl.yaml () 
- (renamed) libc/hdrgen/yaml/sys/random.yaml () 
- (renamed) libc/hdrgen/yaml/sys/resource.yaml () 
- (renamed) libc/hdrgen/yaml/sys/select.yaml () 
- (renamed) libc/hdrgen/yaml/sys/sendfile.yaml () 
- (renamed) libc/hdrgen/yaml/sys/socket.yaml () 
- (renamed) libc/hdrgen/yaml/sys/stat.yaml () 
- (renamed) libc/hdrgen/yaml/sys/statvfs.yaml () 
- (renamed) libc/hdrgen/yaml/sys/syscall.yaml () 
- (renamed) libc/hdrgen/yaml/sys/time.yaml () 
- (renamed) libc/hdrgen/yaml/sys/types.yaml () 
- (renamed) libc/hdrgen/yaml/sys/utsname.yaml () 
- (renamed) libc/hdrgen/yaml/sys/wait.yaml () 
- (renamed) libc/hdrgen/yaml/termios.yaml () 
- (renamed) libc/hdrgen/yaml/threads.yaml () 
- (renamed) libc/hdrgen/yaml/time.yaml () 
- (renamed) libc/hdrgen/yaml/uchar.yaml () 
- (renamed) libc/hdrgen/yaml/unistd.yaml () 
- (renamed) libc/hdrgen/yaml/wchar.yaml () 
- (renamed) libc/hdrgen/yaml_functions_sorted.py () 
- (renamed) libc/hdrgen/yaml_to_classes.py () 
- (modified) libc/include/CMakeLists.txt (+56-56) 
- (removed) libc/newhdrgen/CMakeLists.txt (-17) 
- (modified) libc/src/math/docs/add_math_function.md (+1-1) 


``````````diff
diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index fd82359022cffd..13f2988aa0a505 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -70,7 +70,7 @@ if(LIBC_BUILD_GPU_LOADER OR NOT LLVM_RUNTIMES_BUILD)
   endif()
 endif()
 
-add_subdirectory(newhdrgen)
+add_subdirectory(hdrgen)
 
 option(LIBC_CMAKE_VERBOSE_LOGGING
   "Log details warnings and notifications during CMake configuration." OFF)
diff --git a/libc/cmake/modules/LLVMLibCHeaderRules.cmake b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
index 8f24cd4b3023bd..31a88f0ef93be9 100644
--- a/libc/cmake/modules/LLVMLibCHeaderRules.cmake
+++ b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
@@ -112,7 +112,7 @@ function(add_gen_header target_name)
 
   add_custom_command(
     OUTPUT ${out_file}
-    COMMAND ${Python3_EXECUTABLE} ${LIBC_SOURCE_DIR}/newhdrgen/yaml_to_classes.py
+    COMMAND ${Python3_EXECUTABLE} ${LIBC_SOURCE_DIR}/hdrgen/yaml_to_classes.py
             ${yaml_file}
             --h_def_file ${def_file}
             ${entry_points}
@@ -126,7 +126,7 @@ function(add_gen_header target_name)
     set(decl_out_file ${LIBC_INCLUDE_DIR}/llvm-libc-decls/${relative_path})
     add_custom_command(
       OUTPUT ${decl_out_file}
-      COMMAND ${Python3_EXECUTABLE} ${LIBC_SOURCE_DIR}/newhdrgen/yaml_to_classes.py
+      COMMAND ${Python3_EXECUTABLE} ${LIBC_SOURCE_DIR}/hdrgen/yaml_to_classes.py
               ${yaml_file}
               --export-decls
               ${entry_points}
diff --git a/libc/docs/dev/header_generation.rst b/libc/docs/dev/header_generation.rst
index 0730b9a40c26a1..2c586cc87b6990 100644
--- a/libc/docs/dev/header_generation.rst
+++ b/libc/docs/dev/header_generation.rst
@@ -3,21 +3,15 @@
 Generating Public and Internal headers
 ======================================
 
-This is a new implementation of the previous libc header generator. The old
-header generator (libc-hdrgen aka "Headergen") was based on TableGen, which
-created an awkward dependency on the rest of LLVM for our build system. By
-creating a new standalone Headergen we can eliminate these dependencies for
-easier cross compatibility.
-
-There are 3 main components of the new Headergen. The first component are the
-YAML files that contain all the function header information and are separated by
-header specification and standard. The second component are the classes that are
-created for each component of the function header: macros, enumerations, types,
-function, arguments, and objects. The third component is the Python script that
-uses the class representation to deserialize YAML files into its specific
-components and then reserializes the components into the function header. The
-Python script also combines the generated header content with header definitions
-and extra macro and type inclusions from the .h.def file.
+There are 3 main components of the Headergen. The first component are the YAML
+files that contain all the function header information and are separated by
+header specification and standard. The second component are the classes that
+are created for each component of the function header: macros, enumerations,
+types, function, arguments, and objects. The third component is the Python
+script that uses the class representation to deserialize YAML files into its
+specific components and then reserializes the components into the function
+header. The Python script also combines the generated header content with
+header definitions and extra macro and type inclusions from the .h.def file.
 
 
 Instructions
@@ -30,7 +24,7 @@ Required Versions:
 1. Keep full-build mode on when building, otherwise headers will not be
    generated.
 2. Once the build is complete, enter in the command line within the build
-   directory ``ninja check-newhdrgen`` to ensure that the integration tests are
+   directory ``ninja check-hdrgen`` to ensure that the integration tests are
    passing.
 3. Then enter in the command line ``ninja libc`` to generate headers. Headers
    will be in ``build/projects/libc/include`` or ``build/libc/include`` in a
@@ -50,41 +44,41 @@ To add through the command line:
 
    .. code-block:: none
 
-     python3 libc/newhdrgen/yaml_to_classes.py
-     libc/newhdrgen/yaml/[yaml_file.yaml] --add_function "<return_type>" <function_name> "<function_arg1, function_arg2>" <standard> <guard> <attribute>
+     python3 libc/hdrgen/yaml_to_classes.py
+     libc/hdrgen/yaml/[yaml_file.yaml] --add_function "<return_type>" <function_name> "<function_arg1, function_arg2>" <standard> <guard> <attribute>
 
    Example:
 
    .. code-block:: none
 
-      python3 libc/newhdrgen/yaml_to_classes.py
-      libc/newhdrgen/yaml/ctype.yaml --add_function "char" example_function
+      python3 libc/hdrgen/yaml_to_classes.py
+      libc/hdrgen/yaml/ctype.yaml --add_function "char" example_function
       "int, void, const void" stdc example_float example_attribute
 
    Keep in mind only the return_type and arguments have quotes around them. If
    you do not have any guards or attributes you may enter "null" for both.
 
 3. Check the YAML file that the added function is present. You will also get a
-   generated header file with the new addition in the newhdrgen directory to
+   generated header file with the new addition in the hdrgen directory to
    examine.
 
-If you want to sort the functions alphabetically you can check out libc/newhdrgen/yaml_functions_sorted.py.
+If you want to sort the functions alphabetically you can check out libc/hdrgen/yaml_functions_sorted.py.
 
 
 Testing
 -------
 
-New Headergen has an integration test that you may run once you have configured
-your CMake within the build directory. In the command line, enter the following:
-``ninja check-newhdrgen``. The integration test is one test that ensures the
-process of YAML to classes to generate headers works properly. If there are any
-new additions on formatting headers, make sure the test is updated with the
-specific addition.
+Headergen has an integration test that you may run once you have configured
+your CMake within the build directory. In the command line, enter the
+following: ``ninja check-hdrgen``. The integration test is one test that
+ensures the process of YAML to classes to generate headers works properly. If
+there are any new additions on formatting headers, make sure the test is
+updated with the specific addition.
 
-Integration Test can be found in: ``libc/newhdrgen/tests/test_integration.py``
+Integration Test can be found in: ``libc/hdrgen/tests/test_integration.py``
 
 File to modify if adding something to formatting:
-``libc/newhdrgen/tests/expected_output/test_header.h``
+``libc/hdrgen/tests/expected_output/test_header.h``
 
 
 Common Errors
@@ -95,7 +89,7 @@ Common Errors
 
    .. code-block:: none
 
-      "/llvm-project/libc/newhdrgen/yaml_to_classes.py", line 67, in yaml_to_classes function_data["return_type"]
+      "/llvm-project/libc/hdrgen/yaml_to_classes.py", line 67, in yaml_to_classes function_data["return_type"]
 
    If you receive this error or any error pertaining to
    ``function_data[function_specific_component]`` while building the headers
@@ -123,7 +117,7 @@ Common Errors
    missing. Ensure the correct style and required files are present:
 
    | ``[header_name]``
-   | ``[../libc/newhdrgen/yaml/[yaml_file.yaml]``
+   | ``[../libc/hdrgen/yaml/[yaml_file.yaml]``
    | ``[header_name.h.def]``
    | ``[header_name.h]``
    | ``DEPENDS``
@@ -153,13 +147,13 @@ Common Errors
 
    .. code-block:: none
 
-     File "/llvm-project/libc/newhdrgen/header.py", line 60, in __str__ for
+     File "/llvm-project/libc/hdrgen/header.py", line 60, in __str__ for
      function in self.functions: AttributeError: 'HeaderFile' object has no
      attribute 'functions'
 
    When running ``ninja libc`` in the build directory to generate headers you
    may receive the error above. Essentially this means that in
-   ``libc/newhdrgen/header.py`` there is a missing attribute named functions.
+   ``libc/hdrgen/header.py`` there is a missing attribute named functions.
    Make sure all function components are defined within this file and there are
    no missing functions to add these components.
 
@@ -190,12 +184,12 @@ Common Errors
    Sometimes the integration test will fail but that
    still means the process is working unless the comparison between the output
    and expected_output is not showing. If that is the case make sure in
-   ``libc/newhdrgen/tests/test_integration.py`` there are no missing arguments
+   ``libc/hdrgen/tests/test_integration.py`` there are no missing arguments
    that run through the script.
 
    If the integration tests are failing due to mismatching of lines or small
    errors in spacing that is nothing to worry about. If this is happening while
    you are making a new change to the formatting of the headers, then
    ensure the expected output file
-   ``libc/newhdrgen/tests/expected_output/test_header.h`` has the changes you
+   ``libc/hdrgen/tests/expected_output/test_header.h`` has the changes you
    are applying.
diff --git a/libc/docs/dev/source_tree_layout.rst b/libc/docs/dev/source_tree_layout.rst
index 8b423a1712cc81..0010f138317b58 100644
--- a/libc/docs/dev/source_tree_layout.rst
+++ b/libc/docs/dev/source_tree_layout.rst
@@ -15,9 +15,9 @@ directories::
         - examples
         - fuzzing
         - hdr
+        - hdrgen
         - include
         - lib
-        - newhdrgen
         - src
         - startup
         - test
@@ -89,13 +89,13 @@ The ``lib`` directory
 This directory contains a ``CMakeLists.txt`` file listing the targets for the
 public libraries ``libc.a``, ``libm.a`` etc.
 
-The ``newhdrgen`` directory
+The ``hdrgen`` directory
 ---------------------------
 
 This directory contains the sources and specifications for the types, macros
 and entrypoint functions. These definitions are organized in the ``yaml``
 subdirectory and match the organization of the ``*.h.def`` files. This folder
-also contains the python sources for new headergen, which is what generates the
+also contains the python sources for headergen, which is what generates the
 headers.
 
 The ``src`` directory
diff --git a/libc/hdrgen/CMakeLists.txt b/libc/hdrgen/CMakeLists.txt
new file mode 100644
index 00000000000000..8ebde4e3e45882
--- /dev/null
+++ b/libc/hdrgen/CMakeLists.txt
@@ -0,0 +1,17 @@
+if(LLVM_LIBC_FULL_BUILD)
+  enable_testing()
+
+  set(NEWHDGEN_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tests)
+  set(TEST_OUTPUT_DIR ${CMAKE_BINARY_DIR}/hdrgen/output)
+
+  add_test(
+    NAME hdrgen_integration_test
+    COMMAND python3 ${NEWHDGEN_TESTS_DIR}/test_integration.py --output_dir ${TEST_OUTPUT_DIR}
+  )
+
+  add_custom_target(check-hdrgen
+    COMMAND ${CMAKE_CTEST_COMMAND} -R hdrgen_integration_test --output-on-failure
+  )
+
+  message(STATUS "Integration test for hdrgen added.")
+endif()
diff --git a/libc/newhdrgen/class_implementation/classes/enumeration.py b/libc/hdrgen/class_implementation/classes/enumeration.py
similarity index 100%
rename from libc/newhdrgen/class_implementation/classes/enumeration.py
rename to libc/hdrgen/class_implementation/classes/enumeration.py
diff --git a/libc/newhdrgen/class_implementation/classes/function.py b/libc/hdrgen/class_implementation/classes/function.py
similarity index 100%
rename from libc/newhdrgen/class_implementation/classes/function.py
rename to libc/hdrgen/class_implementation/classes/function.py
diff --git a/libc/newhdrgen/class_implementation/classes/macro.py b/libc/hdrgen/class_implementation/classes/macro.py
similarity index 100%
rename from libc/newhdrgen/class_implementation/classes/macro.py
rename to libc/hdrgen/class_implementation/classes/macro.py
diff --git a/libc/newhdrgen/class_implementation/classes/object.py b/libc/hdrgen/class_implementation/classes/object.py
similarity index 100%
rename from libc/newhdrgen/class_implementation/classes/object.py
rename to libc/hdrgen/class_implementation/classes/object.py
diff --git a/libc/newhdrgen/class_implementation/classes/type.py b/libc/hdrgen/class_implementation/classes/type.py
similarity index 100%
rename from libc/newhdrgen/class_implementation/classes/type.py
rename to libc/hdrgen/class_implementation/classes/type.py
diff --git a/libc/newhdrgen/gpu_headers.py b/libc/hdrgen/gpu_headers.py
similarity index 100%
rename from libc/newhdrgen/gpu_headers.py
rename to libc/hdrgen/gpu_headers.py
diff --git a/libc/newhdrgen/header.py b/libc/hdrgen/header.py
similarity index 100%
rename from libc/newhdrgen/header.py
rename to libc/hdrgen/header.py
diff --git a/libc/newhdrgen/tests/expected_output/test_header.h b/libc/hdrgen/tests/expected_output/test_header.h
similarity index 100%
rename from libc/newhdrgen/tests/expected_output/test_header.h
rename to libc/hdrgen/tests/expected_output/test_header.h
diff --git a/libc/newhdrgen/tests/input/test_small.h.def b/libc/hdrgen/tests/input/test_small.h.def
similarity index 100%
rename from libc/newhdrgen/tests/input/test_small.h.def
rename to libc/hdrgen/tests/input/test_small.h.def
diff --git a/libc/newhdrgen/tests/input/test_small.yaml b/libc/hdrgen/tests/input/test_small.yaml
similarity index 100%
rename from libc/newhdrgen/tests/input/test_small.yaml
rename to libc/hdrgen/tests/input/test_small.yaml
diff --git a/libc/newhdrgen/tests/test_integration.py b/libc/hdrgen/tests/test_integration.py
similarity index 85%
rename from libc/newhdrgen/tests/test_integration.py
rename to libc/hdrgen/tests/test_integration.py
index 33353785af2339..8ea6d8a708073c 100644
--- a/libc/newhdrgen/tests/test_integration.py
+++ b/libc/hdrgen/tests/test_integration.py
@@ -9,7 +9,7 @@
 class TestHeaderGenIntegration(unittest.TestCase):
     def setUp(self):
         self.output_dir = Path(
-            args.output_dir if args.output_dir else "libc/newhdrgen/tests/output"
+            args.output_dir if args.output_dir else "libc/hdrgen/tests/output"
         )
 
         self.maxDiff = None
@@ -21,7 +21,7 @@ def run_script(self, yaml_file, h_def_file, output_dir, entry_points):
         h_def_file = self.source_dir / h_def_file
         command = [
             "python3",
-            str(self.source_dir / "libc/newhdrgen/yaml_to_classes.py"),
+            str(self.source_dir / "libc/hdrgen/yaml_to_classes.py"),
             str(yaml_file),
             "--h_def_file",
             str(h_def_file),
@@ -51,10 +51,10 @@ def compare_files(self, generated_file, expected_file):
         self.assertEqual(gen_content, exp_content)
 
     def test_generate_header(self):
-        yaml_file = "libc/newhdrgen/tests/input/test_small.yaml"
-        h_def_file = "libc/newhdrgen/tests/input/test_small.h.def"
+        yaml_file = "libc/hdrgen/tests/input/test_small.yaml"
+        h_def_file = "libc/hdrgen/tests/input/test_small.h.def"
         expected_output_file = (
-            self.source_dir / "libc/newhdrgen/tests/expected_output/test_header.h"
+            self.source_dir / "libc/hdrgen/tests/expected_output/test_header.h"
         )
         output_file = self.output_dir / "test_small.h"
         entry_points = {"func_b", "func_a", "func_c", "func_d", "func_e"}
diff --git a/libc/newhdrgen/yaml/arpa/inet.yaml b/libc/hdrgen/yaml/arpa/inet.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/arpa/inet.yaml
rename to libc/hdrgen/yaml/arpa/inet.yaml
diff --git a/libc/newhdrgen/yaml/assert.yaml b/libc/hdrgen/yaml/assert.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/assert.yaml
rename to libc/hdrgen/yaml/assert.yaml
diff --git a/libc/newhdrgen/yaml/ctype.yaml b/libc/hdrgen/yaml/ctype.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/ctype.yaml
rename to libc/hdrgen/yaml/ctype.yaml
diff --git a/libc/newhdrgen/yaml/dirent.yaml b/libc/hdrgen/yaml/dirent.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/dirent.yaml
rename to libc/hdrgen/yaml/dirent.yaml
diff --git a/libc/newhdrgen/yaml/dlfcn.yaml b/libc/hdrgen/yaml/dlfcn.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/dlfcn.yaml
rename to libc/hdrgen/yaml/dlfcn.yaml
diff --git a/libc/newhdrgen/yaml/elf.yaml b/libc/hdrgen/yaml/elf.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/elf.yaml
rename to libc/hdrgen/yaml/elf.yaml
diff --git a/libc/newhdrgen/yaml/errno.yaml b/libc/hdrgen/yaml/errno.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/errno.yaml
rename to libc/hdrgen/yaml/errno.yaml
diff --git a/libc/newhdrgen/yaml/fcntl.yaml b/libc/hdrgen/yaml/fcntl.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/fcntl.yaml
rename to libc/hdrgen/yaml/fcntl.yaml
diff --git a/libc/newhdrgen/yaml/features.yaml b/libc/hdrgen/yaml/features.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/features.yaml
rename to libc/hdrgen/yaml/features.yaml
diff --git a/libc/newhdrgen/yaml/fenv.yaml b/libc/hdrgen/yaml/fenv.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/fenv.yaml
rename to libc/hdrgen/yaml/fenv.yaml
diff --git a/libc/newhdrgen/yaml/float.yaml b/libc/hdrgen/yaml/float.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/float.yaml
rename to libc/hdrgen/yaml/float.yaml
diff --git a/libc/newhdrgen/yaml/gpu/rpc.yaml b/libc/hdrgen/yaml/gpu/rpc.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/gpu/rpc.yaml
rename to libc/hdrgen/yaml/gpu/rpc.yaml
diff --git a/libc/newhdrgen/yaml/inttypes.yaml b/libc/hdrgen/yaml/inttypes.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/inttypes.yaml
rename to libc/hdrgen/yaml/inttypes.yaml
diff --git a/libc/newhdrgen/yaml/limits.yaml b/libc/hdrgen/yaml/limits.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/limits.yaml
rename to libc/hdrgen/yaml/limits.yaml
diff --git a/libc/newhdrgen/yaml/link.yaml b/libc/hdrgen/yaml/link.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/link.yaml
rename to libc/hdrgen/yaml/link.yaml
diff --git a/libc/newhdrgen/yaml/locale.yaml b/libc/hdrgen/yaml/locale.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/locale.yaml
rename to libc/hdrgen/yaml/locale.yaml
diff --git a/libc/newhdrgen/yaml/malloc.yaml b/libc/hdrgen/yaml/malloc.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/malloc.yaml
rename to libc/hdrgen/yaml/malloc.yaml
diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/hdrgen/yaml/math.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/math.yaml
rename to libc/hdrgen/yaml/math.yaml
diff --git a/libc/newhdrgen/yaml/pthread.yaml b/libc/hdrgen/yaml/pthread.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/pthread.yaml
rename to libc/hdrgen/yaml/pthread.yaml
diff --git a/libc/newhdrgen/yaml/sched.yaml b/libc/hdrgen/yaml/sched.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sched.yaml
rename to libc/hdrgen/yaml/sched.yaml
diff --git a/libc/newhdrgen/yaml/search.yaml b/libc/hdrgen/yaml/search.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/search.yaml
rename to libc/hdrgen/yaml/search.yaml
diff --git a/libc/newhdrgen/yaml/setjmp.yaml b/libc/hdrgen/yaml/setjmp.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/setjmp.yaml
rename to libc/hdrgen/yaml/setjmp.yaml
diff --git a/libc/newhdrgen/yaml/signal.yaml b/libc/hdrgen/yaml/signal.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/signal.yaml
rename to libc/hdrgen/yaml/signal.yaml
diff --git a/libc/newhdrgen/yaml/spawn.yaml b/libc/hdrgen/yaml/spawn.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/spawn.yaml
rename to libc/hdrgen/yaml/spawn.yaml
diff --git a/libc/newhdrgen/yaml/stdbit.yaml b/libc/hdrgen/yaml/stdbit.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/stdbit.yaml
rename to libc/hdrgen/yaml/stdbit.yaml
diff --git a/libc/newhdrgen/yaml/stdckdint.yaml b/libc/hdrgen/yaml/stdckdint.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/stdckdint.yaml
rename to libc/hdrgen/yaml/stdckdint.yaml
diff --git a/libc/newhdrgen/yaml/stdfix.yaml b/libc/hdrgen/yaml/stdfix.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/stdfix.yaml
rename to libc/hdrgen/yaml/stdfix.yaml
diff --git a/libc/newhdrgen/yaml/stdint.yaml b/libc/hdrgen/yaml/stdint.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/stdint.yaml
rename to libc/hdrgen/yaml/stdint.yaml
diff --git a/libc/newhdrgen/yaml/stdio.yaml b/libc/hdrgen/yaml/stdio.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/stdio.yaml
rename to libc/hdrgen/yaml/stdio.yaml
diff --git a/libc/newhdrgen/yaml/stdlib.yaml b/libc/hdrgen/yaml/stdlib.yaml
similarity index 100%
rena...
[truncated]

``````````

</details>


https://github.com/llvm/llvm-project/pull/118545


More information about the libc-commits mailing list