P4C
The P4 Compiler
 
Loading...
Searching...
No Matches
P4::DoRemoveSelectBooleans Class Reference
Inheritance diagram for P4::DoRemoveSelectBooleans:

Public Member Functions

 DoRemoveSelectBooleans (const P4::TypeMap *typeMap)
 
const IR::Node * postorder (IR::SelectCase *selectCase) override
 
const IR::Node * postorder (IR::SelectExpression *expression) override
 

Detailed Description

Casts boolean expressions in a select or a select case keyset to the type bit<1>.

We assume that this pass is run after SimplifySelectLists, so there are only scalar types in the select expression.