cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
67 lines
1.7 KiB
ReStructuredText
67 lines
1.7 KiB
ReStructuredText
llvm-cgdata - LLVM CodeGen Data Tool
|
|
====================================
|
|
|
|
.. program:: llvm-cgdata
|
|
|
|
SYNOPSIS
|
|
--------
|
|
|
|
:program:`llvm-cgdata` [**commands**] [**options**] (<binaries>|<.cgdata>)
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
|
|
The :program:llvm-cgdata utility parses raw codegen data embedded in compiled
|
|
binary files and merges them into a single .cgdata file. It can also inspect
|
|
and manipulate .cgdata files. Currently, the tool supports saving and restoring
|
|
outlined hash trees and stable function maps, allowing for more efficient
|
|
function outlining and function merging across modules in subsequent
|
|
compilations. The design is extensible, allowing for the incorporation of
|
|
additional codegen summaries and optimization techniques.
|
|
|
|
COMMANDS
|
|
--------
|
|
|
|
At least one of the following commands are required:
|
|
|
|
.. option:: --convert
|
|
|
|
Convert a .cgdata file from one format to another.
|
|
|
|
.. option:: --merge
|
|
|
|
Merge multiple raw codgen data in binaries into a single .cgdata file.
|
|
|
|
.. option:: --show
|
|
|
|
Show summary information about a .cgdata file.
|
|
|
|
OPTIONS
|
|
-------
|
|
|
|
:program:`llvm-cgdata` supports the following options:
|
|
|
|
.. option:: --format=[text|binary]
|
|
|
|
Specify the format of the output .cgdata file.
|
|
|
|
.. option:: --output=<string>
|
|
|
|
Specify the output file name.
|
|
|
|
.. option:: --cgdata-version
|
|
|
|
Print the version of the llvm-cgdata tool.
|
|
|
|
EXAMPLES
|
|
--------
|
|
|
|
To convert a .cgdata file from binary to text format:
|
|
$ llvm-cgdata --convert --format=text input.cgdata --output=output.data
|
|
|
|
To merge multiple raw codegen data in object files into a single .cgdata file:
|
|
$ llvm-cgdata --merge file1.o file2.o --output=merged.cgdata
|
|
|
|
To show summary information about a .cgdata file:
|
|
$ llvm-cgdata --show input.cgdata
|