Skip to content

Support unary builtins in DSLX map IR conversion. - #5085

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_992449708
Oct 2, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_992449708

Conversation

@copybara-service

Copy link
Copy Markdown

Support unary builtins in DSLX map IR conversion.

FunctionConverter::DefMapWithBuiltin previously only handled clz and ctz, failing with an Invalid builtin name for map internal error during IR conversion when mapping other unary builtins that are already supported by the DSLX typechecker and bytecode interpreter.

Extend DefMapWithBuiltin to synthesize wrapper IR functions for and_reduce, or_reduce, xor_reduce, rev, and encode.

`FunctionConverter::DefMapWithBuiltin` previously only handled `clz` and `ctz`, failing with an `Invalid builtin name for map` internal error during IR conversion when mapping other unary builtins that are already supported by the DSLX typechecker and bytecode interpreter.

Extend `DefMapWithBuiltin` to synthesize wrapper IR functions for `and_reduce`, `or_reduce`, `xor_reduce`, `rev`, and `encode`.

PiperOrigin-RevId: 992538071
@copybara-service
copybara-service Bot merged commit a386771 into main Oct 2, 2026
5 checks passed
@copybara-service
copybara-service Bot deleted the test_992449708 branch October 2, 2026 21:31

This branch was successfully deployed

1 active deployment
github-pages — a3867715 Deployed Oct 2, 2026 by copybara-service[bot] via deploy #13154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant