llvm-project
ee55efc7 - [TableGen][DecoderEmitter] Repurpose Filter class (#155065)

Commit
43 days ago
[TableGen][DecoderEmitter] Repurpose Filter class (#155065) There was a lot of confusion about the responsibilities of Filter and FilterChooser. They created instances of each other and called each other's methods. Some of the methods had similar names and did similar things. This change moves most of the Filter members to FilterChooser and turns Filter into a supplementary class with short lifetime. FilterChooser constructs an array of (candidate) Filters, chooses the best performing one, and applies it to the given set of encodings, creating inferior FilterChoosers as necessary. The Filter array is then destroyed. All responsibility for generating the decoder table now lies with FilterChooser.
Author
Parents
Loading