Skip to content

Commit

Permalink
Standardize cc_xls_ir_jit_wrapper class_names
Browse files Browse the repository at this point in the history
We would silently transform these into camel-case anyway. Make the class-name be camel case so we can stop doing this behavior and just take the class-name unchanged. This does not affect the generated code in any way.

PiperOrigin-RevId: 630475745
  • Loading branch information
allight authored and copybara-github committed May 3, 2024
1 parent 9c1a31e commit 72961d5
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion third_party/xls_berkeley_softfloat/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cc_xls_ir_jit_wrapper(
name = "fpdiv_2x32_jit_wrapper",
src = ":fpdiv_2x32.opt.ir",
jit_wrapper_args = {
"class_name": "fpdiv_2x32",
"class_name": "Fpdiv2x32",
"namespace": "xls::fp",
},
)
Expand Down
8 changes: 4 additions & 4 deletions third_party/xls_go_math/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cc_xls_ir_jit_wrapper(
name = "fpexp_32_jit_wrapper",
src = ":fpexp_32.opt.ir",
jit_wrapper_args = {
"class_name": "fpexp_32",
"class_name": "Fpexp32",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -135,7 +135,7 @@ cc_xls_ir_jit_wrapper(
name = "fp_sincos_32_jit_wrapper",
src = ":fp_sincos_32.opt.ir",
jit_wrapper_args = {
"class_name": "fp_sincos_32",
"class_name": "FpSincos32",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -200,7 +200,7 @@ cc_xls_ir_jit_wrapper(
name = "fp_trig_reduce_jit_wrapper",
src = ":fp_trig_reduce.opt.ir",
jit_wrapper_args = {
"class_name": "fp_trig_reduce",
"class_name": "FpTrigReduce",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -262,7 +262,7 @@ cc_xls_ir_jit_wrapper(
name = "fpsqrt_32_jit_wrapper",
src = ":fpsqrt_32.opt.ir",
jit_wrapper_args = {
"class_name": "fpsqrt_32",
"class_name": "Fpsqrt32",
"namespace": "xls::fp",
},
)
Expand Down
2 changes: 1 addition & 1 deletion xls/build_rules/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ cc_xls_ir_jit_wrapper(
name = "chaining_example_opt_ir_jit_wrapper_double_cc",
src = ":chaining_example_double_opt_ir.opt.ir",
jit_wrapper_args = {
"class_name": "chaining_example",
"class_name": "ChainingExample",
"function": get_mangled_ir_symbol("chaining_example", "double"),
"namespace": "not_xls::test",
},
Expand Down
18 changes: 9 additions & 9 deletions xls/dslx/stdlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ cc_xls_ir_jit_wrapper(
name = "float32_add_jit_wrapper",
src = ":float32_add.opt.ir",
jit_wrapper_args = {
"class_name": "float32_add",
"class_name": "Float32Add",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -269,7 +269,7 @@ cc_xls_ir_jit_wrapper(
name = "float32_mul_jit_wrapper",
src = ":float32_mul.opt.ir",
jit_wrapper_args = {
"class_name": "float32_mul",
"class_name": "Float32Mul",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -311,7 +311,7 @@ cc_xls_ir_jit_wrapper(
name = "float32_upcast_jit_wrapper",
src = ":float32_upcast.opt.ir",
jit_wrapper_args = {
"class_name": "f32_to_f64",
"class_name": "F32ToF64",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -453,7 +453,7 @@ cc_xls_ir_jit_wrapper(
name = "float32_fma_jit_wrapper",
src = ":float32_fma.opt.ir",
jit_wrapper_args = {
"class_name": "float32_fma",
"class_name": "Float32Fma",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -493,7 +493,7 @@ cc_xls_ir_jit_wrapper(
name = "float32_ldexp_jit_wrapper",
src = ":float32_ldexp.opt.ir",
jit_wrapper_args = {
"class_name": "float32_ldexp",
"class_name": "Float32Ldexp",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -546,7 +546,7 @@ cc_xls_ir_jit_wrapper(
name = "float32_fast_rsqrt_jit_wrapper",
src = ":float32_fast_rsqrt.opt.ir",
jit_wrapper_args = {
"class_name": "float32_fast_rsqrt",
"class_name": "Float32FastRsqrt",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -621,7 +621,7 @@ cc_xls_ir_jit_wrapper(
name = "float64_add_jit_wrapper",
src = ":float64_add.opt.ir",
jit_wrapper_args = {
"class_name": "float64_add",
"class_name": "Float64Add",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -694,7 +694,7 @@ cc_xls_ir_jit_wrapper(
name = "float64_mul_jit_wrapper",
src = ":float64_mul.opt.ir",
jit_wrapper_args = {
"class_name": "float64_mul",
"class_name": "Float64Mul",
"namespace": "xls::fp",
},
)
Expand Down Expand Up @@ -743,7 +743,7 @@ cc_xls_ir_jit_wrapper(
name = "float64_fma_jit_wrapper",
src = ":float64_fma.opt.ir",
jit_wrapper_args = {
"class_name": "float64_fma",
"class_name": "Float64Fma",
"namespace": "xls::fp",
},
)
Expand Down
2 changes: 1 addition & 1 deletion xls/examples/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ cc_xls_ir_jit_wrapper(
name = "sha256_jit_wrapper",
src = ":sha256.opt.ir",
jit_wrapper_args = {
"class_name": "sha256",
"class_name": "Sha256",
"function": "main",
"namespace": "xls::examples",
},
Expand Down
2 changes: 1 addition & 1 deletion xls/examples/apfloat_add_parallel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cc_xls_ir_jit_wrapper(
name = "apfloat_add_parallel_jit_wrapper",
src = ":apfloat_add_parallel.opt.ir",
jit_wrapper_args = {
"class_name": "float32_add_se",
"class_name": "Float32AddSe",
"namespace": "xls::examples",
},
)
Expand Down
2 changes: 1 addition & 1 deletion xls/examples/crc32/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ cc_xls_ir_jit_wrapper(
name = "crc32_jit_wrapper",
src = ":crc32.opt.ir",
jit_wrapper_args = {
"class_name": "crc32",
"class_name": "Crc32",
"namespace": "xls::examples",
},
)
Expand Down
2 changes: 1 addition & 1 deletion xls/examples/jpeg/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ cc_xls_ir_jit_wrapper(
name = "idct_chen_jit_wrapper",
src = ":idct_chen.opt.ir",
jit_wrapper_args = {
"class_name": "idct_chen",
"class_name": "IdctChen",
"namespace": "xls::jpeg",
},
)
Expand Down

0 comments on commit 72961d5

Please sign in to comment.