12 Commits

Author SHA1 Message Date
OverMighty
f2f410ca13
[libc][newhdrgen] Remove shebangs in files other than yaml_to_classes.py (#101816)
None of the Python files were committed with the executable bit set, and
only yaml_to_classes.py was intended to be executed.

Also sets the executable bit on yaml_to_classes.py and changes the
shebang to run python3 instead of python.
2024-08-03 23:29:34 -07:00
RoseZhang03
043aca3990
[libc] newhdrgen: removed Include class (#99584)
Include class is not used (includes are made through Macro class, Type
class, and imports from .h.def files).
2024-07-18 23:19:09 +00:00
aaryanshukla
b37bdadbe7
[libc] newheadergen: adding h_def_file arg to test (#99397)
- spacing with _NOEXCEPT
2024-07-18 10:56:26 -07:00
aaryanshukla
58d4ca06bd
Revert "[libc] newheadergen: configured cmake" (#99414)
Reverts llvm/llvm-project#98828
2024-07-17 17:17:05 -07:00
aaryanshukla
83fbd79319
[libc] newheadergen: configured cmake (#98828)
- all headers in the build system are generated by newheadergen
- tested on gpu-build

---------

Co-authored-by: Rose Zhang <rosezhang@google.com>
2024-07-17 16:23:15 -07:00
aaryanshukla
f1c957d41b
[libc] newheadergen: script adjusted for cmake (#98825)
- added entrypoints and headerfile parameters depending on target
- fixed nits in yaml files causing errors
- tested with new cmake config
- cmake patch will be seperate
2024-07-16 12:44:08 -07:00
RoseZhang03
e3bd43b49e
[libc] added grouping of guarded functions in header generation (#98532)
Instead of #ifdef guards for each individual function, #ifdef and #endif
will surround all functions that have the same guard.
2024-07-12 17:43:54 +00:00
RoseZhang03
a105113fef
[libc] newhdrgen: updated sorting of guarded functions in fuction generation (#98241)
In yaml_to_classes.py, changed order of adding functions so that guarded
functions appear after regular functions. Guarded functions will still
be alphabetically sorted within each guard. Each group of guarded
functions will appear in alphabetical order of the guard name.

Fixed issus in math.yaml such as missing guards.

Fixed Function class for spacing issues and the order in which
attributes are listed in the function header.

Deleted extra whitespace in the last line of unistd.yaml.
2024-07-10 22:12:07 +00:00
aaryanshukla
a004e50b9e
[libc] corrected yaml files in newhdrgen (#98069)
- fixed little issues in yaml issues through testing
- corrected function class in the case there is no attribute
2024-07-08 15:41:25 -07:00
aaryanshukla
6aed0d5afb
[libc] created integration tests for newhdrgen (#97361)
- created integration tests for libc hdrgen 
- implemented sorting function names in yaml files through script
2024-07-03 14:29:51 -07:00
aaryanshukla
e17b17d86e
[libc] added yaml_combined files, frontend for new headergen (#96833)
These are the yaml files that have combined functions from different
libraries
Rose will be adding the rest of the yaml in the next pr
Missing assert.yaml -- work in progress
2024-06-28 08:59:08 -07:00
RoseZhang03
57d3d07050
[libc] added newhdrgen class implementation (#96710)
Added a class representation of a libc header file, allowing for easier
conversion from YAML to .h file output.

Classes include:
- Function (representing function headers)
- Include (representing various include statements found on a header
  file)
- Macro (representing macro definitions)
- Enumeration (representing enum definitions)
- Type (representing include statements for NamedTypes)
- Object (representing ObjectSpec defintitions)
2024-06-26 20:06:21 +00:00