Skip to content

Commit 835f742

Browse files
XLS Teamcopybara-github
XLS Team
authored andcommitted
Regenerate Starlark rule docs
PiperOrigin-RevId: 546966417
1 parent 18130ca commit 835f742

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs_src/bazel_rules_macros.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
## check_sha256sum_frozen
1111

1212
<pre>
13-
check_sha256sum_frozen(<a href="#check_sha256sum_frozen-name">name</a>, <a href="#check_sha256sum_frozen-frozen_file">frozen_file</a>, <a href="#check_sha256sum_frozen-sha256sum">sha256sum</a>, <a href="#check_sha256sum_frozen-src">src</a>)
13+
check_sha256sum_frozen(<a href="#check_sha256sum_frozen-name">name</a>, <a href="#check_sha256sum_frozen-src">src</a>, <a href="#check_sha256sum_frozen-frozen_file">frozen_file</a>, <a href="#check_sha256sum_frozen-sha256sum">sha256sum</a>)
1414
</pre>
1515

1616
Produces a frozen file if the sha256sum checksum of a source file matches a user-defined checksum.
@@ -86,17 +86,17 @@ Examples:
8686
| Name | Description | Type | Mandatory | Default |
8787
| :------------- | :------------- | :------------- | :------------- | :------------- |
8888
| <a id="check_sha256sum_frozen-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
89+
| <a id="check_sha256sum_frozen-src"></a>src | The source file. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
8990
| <a id="check_sha256sum_frozen-frozen_file"></a>frozen_file | The frozen output file. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
9091
| <a id="check_sha256sum_frozen-sha256sum"></a>sha256sum | The sha256sum of the source file. | String | required | |
91-
| <a id="check_sha256sum_frozen-src"></a>src | The source file. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
9292
9393
9494
<a id="check_sha256sum_test"></a>
9595
9696
## check_sha256sum_test
9797
9898
<pre>
99-
check_sha256sum_test(<a href="#check_sha256sum_test-name">name</a>, <a href="#check_sha256sum_test-sha256sum">sha256sum</a>, <a href="#check_sha256sum_test-src">src</a>)
99+
check_sha256sum_test(<a href="#check_sha256sum_test-name">name</a>, <a href="#check_sha256sum_test-src">src</a>, <a href="#check_sha256sum_test-sha256sum">sha256sum</a>)
100100
</pre>
101101
102102
Validates the sha256sum checksum of a source file with a user-defined checksum.
@@ -123,16 +123,16 @@ Examples:
123123
| Name | Description | Type | Mandatory | Default |
124124
| :------------- | :------------- | :------------- | :------------- | :------------- |
125125
| <a id="check_sha256sum_test-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
126-
| <a id="check_sha256sum_test-sha256sum"></a>sha256sum | The sha256sum of the source file. | String | required | |
127126
| <a id="check_sha256sum_test-src"></a>src | The source file. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
127+
| <a id="check_sha256sum_test-sha256sum"></a>sha256sum | The sha256sum of the source file. | String | required | |
128128
129129
130130
<a id="proto_data"></a>
131131
132132
## proto_data
133133
134134
<pre>
135-
proto_data(<a href="#proto_data-name">name</a>, <a href="#proto_data-proto_name">proto_name</a>, <a href="#proto_data-protobin_file">protobin_file</a>, <a href="#proto_data-src">src</a>)
135+
proto_data(<a href="#proto_data-name">name</a>, <a href="#proto_data-src">src</a>, <a href="#proto_data-proto_name">proto_name</a>, <a href="#proto_data-protobin_file">protobin_file</a>)
136136
</pre>
137137
138138
Converts a proto text with a xlscc.HLSBlock message to a proto binary.
@@ -158,17 +158,17 @@ Examples:
158158
| Name | Description | Type | Mandatory | Default |
159159
| :------------- | :------------- | :------------- | :------------- | :------------- |
160160
| <a id="proto_data-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
161+
| <a id="proto_data-src"></a>src | The source file. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
161162
| <a id="proto_data-proto_name"></a>proto_name | The name of the message type in the .proto files that 'src' file represents. | String | optional | <code>"xlscc.HLSBlock"</code> |
162163
| <a id="proto_data-protobin_file"></a>protobin_file | The name of the output file to write binary proto to. If not specified, the target name of the bazel rule followed by a .protobin extension is used. | <a href="https://bazel.build/concepts/labels">Label</a> | optional | |
163-
| <a id="proto_data-src"></a>src | The source file. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
164164
165165
166166
<a id="xls_benchmark_ir"></a>
167167
168168
## xls_benchmark_ir
169169
170170
<pre>
171-
xls_benchmark_ir(<a href="#xls_benchmark_ir-name">name</a>, <a href="#xls_benchmark_ir-benchmark_ir_args">benchmark_ir_args</a>, <a href="#xls_benchmark_ir-src">src</a>, <a href="#xls_benchmark_ir-top">top</a>)
171+
xls_benchmark_ir(<a href="#xls_benchmark_ir-name">name</a>, <a href="#xls_benchmark_ir-src">src</a>, <a href="#xls_benchmark_ir-benchmark_ir_args">benchmark_ir_args</a>, <a href="#xls_benchmark_ir-top">top</a>)
172172
</pre>
173173
174174
Executes the benchmark tool on an IR file.
@@ -206,8 +206,8 @@ Examples:
206206
| Name | Description | Type | Mandatory | Default |
207207
| :------------- | :------------- | :------------- | :------------- | :------------- |
208208
| <a id="xls_benchmark_ir-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
209-
| <a id="xls_benchmark_ir-benchmark_ir_args"></a>benchmark_ir_args | Arguments of the benchmark IR tool. For details on the arguments, refer to the benchmark_main application at //xls/tools/benchmark_main.cc. | <a href="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional | <code>{}</code> |
210209
| <a id="xls_benchmark_ir-src"></a>src | The IR source file for the rule. A single source file must be provided. The file must have a '.ir' extension. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
210+
| <a id="xls_benchmark_ir-benchmark_ir_args"></a>benchmark_ir_args | Arguments of the benchmark IR tool. For details on the arguments, refer to the benchmark_main application at //xls/tools/benchmark_main.cc. | <a href="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional | <code>{}</code> |
211211
| <a id="xls_benchmark_ir-top"></a>top | The (*mangled*) name of the entry point. See get_mangled_ir_symbol. Defines the 'top' argument of the IR tool/application. | String | optional | <code>""</code> |
212212
213213
@@ -356,7 +356,7 @@ Examples:
356356
## xls_dslx_test
357357
358358
<pre>
359-
xls_dslx_test(<a href="#xls_dslx_test-name">name</a>, <a href="#xls_dslx_test-deps">deps</a>, <a href="#xls_dslx_test-dslx_test_args">dslx_test_args</a>, <a href="#xls_dslx_test-library">library</a>, <a href="#xls_dslx_test-srcs">srcs</a>)
359+
xls_dslx_test(<a href="#xls_dslx_test-name">name</a>, <a href="#xls_dslx_test-deps">deps</a>, <a href="#xls_dslx_test-srcs">srcs</a>, <a href="#xls_dslx_test-dslx_test_args">dslx_test_args</a>, <a href="#xls_dslx_test-library">library</a>)
360360
</pre>
361361
362362
A dslx test executes the tests and quick checks of a DSLX source file.
@@ -400,17 +400,17 @@ Examples:
400400
| :------------- | :------------- | :------------- | :------------- | :------------- |
401401
| <a id="xls_dslx_test-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
402402
| <a id="xls_dslx_test-deps"></a>deps | Dependency targets for the files in the 'srcs' attribute. This attribute is mutually exclusive with the 'library' attribute. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | <code>[]</code> |
403+
| <a id="xls_dslx_test-srcs"></a>srcs | Source files for the rule. The files must have a '.x' extension. This attribute is mutually exclusive with the 'library' attribute. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | <code>[]</code> |
403404
| <a id="xls_dslx_test-dslx_test_args"></a>dslx_test_args | Arguments of the DSLX interpreter executable. For details on the arguments, refer to the interpreter_main application at //xls/dslx/interpreter_main.cc. | <a href="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional | <code>{}</code> |
404405
| <a id="xls_dslx_test-library"></a>library | A DSLX library target where the direct (non-transitive) files of the target are tested. This attribute is mutually exclusive with the 'srcs' and 'deps' attribute. | <a href="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
405-
| <a id="xls_dslx_test-srcs"></a>srcs | Source files for the rule. The files must have a '.x' extension. This attribute is mutually exclusive with the 'library' attribute. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | <code>[]</code> |
406406
407407
408408
<a id="xls_eval_ir_test"></a>
409409
410410
## xls_eval_ir_test
411411
412412
<pre>
413-
xls_eval_ir_test(<a href="#xls_eval_ir_test-name">name</a>, <a href="#xls_eval_ir_test-input_validator">input_validator</a>, <a href="#xls_eval_ir_test-input_validator_expr">input_validator_expr</a>, <a href="#xls_eval_ir_test-ir_eval_args">ir_eval_args</a>, <a href="#xls_eval_ir_test-src">src</a>, <a href="#xls_eval_ir_test-top">top</a>)
413+
xls_eval_ir_test(<a href="#xls_eval_ir_test-name">name</a>, <a href="#xls_eval_ir_test-src">src</a>, <a href="#xls_eval_ir_test-input_validator">input_validator</a>, <a href="#xls_eval_ir_test-input_validator_expr">input_validator_expr</a>, <a href="#xls_eval_ir_test-ir_eval_args">ir_eval_args</a>, <a href="#xls_eval_ir_test-top">top</a>)
414414
</pre>
415415
416416
Executes the IR interpreter on an IR file.
@@ -448,10 +448,10 @@ Examples:
448448
| Name | Description | Type | Mandatory | Default |
449449
| :------------- | :------------- | :------------- | :------------- | :------------- |
450450
| <a id="xls_eval_ir_test-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
451+
| <a id="xls_eval_ir_test-src"></a>src | The IR source file for the rule. A single source file must be provided. The file must have a '.ir' extension. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
451452
| <a id="xls_eval_ir_test-input_validator"></a>input_validator | The DSLX library defining the input validator for this test. Mutually exclusive with "input_validator_expr". | <a href="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
452453
| <a id="xls_eval_ir_test-input_validator_expr"></a>input_validator_expr | The expression to validate an input for the test function. Mutually exclusive with "input_validator". | String | optional | <code>""</code> |
453454
| <a id="xls_eval_ir_test-ir_eval_args"></a>ir_eval_args | Arguments of the IR interpreter. For details on the arguments, refer to the eval_ir_main application at //xls/tools/eval_ir_main.cc.The 'top' argument is not assigned using this attribute. | <a href="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional | <code>{"random_inputs": "100", "optimize_ir": "true"}</code> |
454-
| <a id="xls_eval_ir_test-src"></a>src | The IR source file for the rule. A single source file must be provided. The file must have a '.ir' extension. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
455455
| <a id="xls_eval_ir_test-top"></a>top | The (*mangled*) name of the entry point. See get_mangled_ir_symbol. Defines the 'top' argument of the IR tool/application. | String | optional | <code>""</code> |
456456
457457

0 commit comments

Comments
 (0)