Skip to content

[Synth] Add dot gate#10277

Open
uenoku wants to merge 1 commit intollvm:mainfrom
uenoku:dev/hidetou/dot-gate-4
Open

[Synth] Add dot gate#10277
uenoku wants to merge 1 commit intollvm:mainfrom
uenoku:dev/hidetou/dot-gate-4

Conversation

@uenoku
Copy link
Copy Markdown
Member

@uenoku uenoku commented Apr 20, 2026

Add synth.dot, an ordered 3-input Boolean logic op implementing x xor (z or (x and y)) with per-input inversion support. Dot gates are considered to be a promising intermediate representation for area optimization,
as discussed in "Three-Input Gates for Logic Synthesis" (Dewmini Sudara Marakkalage et al., TCAD 2021).

Add a dot operation with a straightforward implementation of the BooleanLogicOpInterface. This operation won't typically be created by the lowering pipeline; instead, it will be generated through cut rewriting based on a database from exact synthesis. I'm hoping to upstream this exact synthesis pass soon (https://gist.github.com/uenoku/bc99755f2b4ada0d454a088c7257b0e4 is the IR of area optimal exact synthesis result for 4-input boolean function).

Assisted-by: codex: gpt-5.4

Add `synth.dot`, an ordered 3-input Boolean logic op implementing
`x xor (z or (x and y))` with per-input inversion support. Dot gates are known
to be a promising IR primitive for area optimization.

Add dot operation with straight forward BooleanLogicOpInterface
implementations.
@uenoku uenoku force-pushed the dev/hidetou/dot-gate-4 branch from 4303901 to 3677d4e Compare April 20, 2026 07:51
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