There are places in the code, most prominently the QIR code generation paths, where there is a mix of processing and traversal logic. To split those and avoid some code duplication, we should introduce a visitor pattern like what we use for other IRs inside our repo.
There are places in the code, most prominently the QIR code generation paths, where there is a mix of processing and traversal logic. To split those and avoid some code duplication, we should introduce a visitor pattern like what we use for other IRs inside our repo.