P4C
The P4 Compiler
Loading...
Searching...
No Matches
Public Member Functions
|
List of all members
P4::DoRemoveLeftSlices Class Reference
Inheritance diagram for P4::DoRemoveLeftSlices:
[
legend
]
Public Member Functions
DoRemoveLeftSlices
(
P4::TypeMap
*typeMap)
const IR::Node *
postorder
(IR::AssignmentStatement *stat) override
Detailed Description
This pass removes Slices on the lhs of an assignment
a[m:l] = e; -> a = (a & ~mask) | (((cast)e << l) & mask);
Precondition
none
Postcondition
no field slice operator in the lhs of assignment statement
P4
DoRemoveLeftSlices
Generated on Tue Mar 26 2024 for