4 Commits
Author SHA1 Message Date
Ayush RanjanandgVisor bot 27a81c303b Add support for parsing constants from NVIDIA driver in driver_ast_parser.
The `driver_ast_parser` tool is now able to parse constants alongside with
structs. This is done by adding a new `constants` field in the JSON input, and
a `constants` field in the JSON output. This will be used later to detect
changes in constants between driver versions.

Also, the parser's `structs` argument was renamed to `input` to account for
both structs and constants.

PiperOrigin-RevId: 792677998
2025-08-08 10:39:19 -07:00
Anthony CuiandgVisor bot 7e6814cbab Have driver_ast_parser report the size of structs and types.
PiperOrigin-RevId: 660453033
2024-08-07 10:55:09 -07:00
Anthony CuiandgVisor bot dd01749f67 Have tool recurse through all structs and TypeDefs.
This is an improvement from just comparing the fields of top-level structs.
As a part of this, we handle anonymous records and arrays as well.

PiperOrigin-RevId: 657652481
2024-07-30 10:51:57 -07:00
Anthony CuiandgVisor bot 62759270a8 Create Clang tool to find struct definitions in Nvidia source files.
PiperOrigin-RevId: 655338427
2024-07-23 16:15:17 -07:00