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

Public Member Functions

 StatementConverter (ProgramStructure *structure, std::map< cstring, cstring > *renameMap)
 
const IR::Statement * convert (const IR::Node *node)
 
const IR::Statement * convert (const IR::Vector< IR::Expression > *toConvert)
 
const IR::Node * preorder (IR::Apply *apply) override
 
const IR::Node * preorder (IR::If *cond) override
 
const IR::Node * preorder (IR::Primitive *primitive) override
 
- Public Member Functions inherited from P4V1::ExpressionConverter
 ExpressionConverter (ProgramStructure *structure)
 
const IR::Expression * convert (const IR::Node *node)
 
const IR::Type * getFieldType (const IR::Type_StructLike *ht, cstring fieldName)
 
const IR::Node * postorder (IR::ActionArg *arg) override
 
const IR::Node * postorder (IR::ConcreteHeaderRef *nhr) override
 
const IR::Node * postorder (IR::Constant *expression) override
 
const IR::Node * postorder (IR::Equ *equ) override
 
const IR::Node * postorder (IR::FieldList *fl) override
 
const IR::Node * postorder (IR::GlobalRef *gr) override
 
const IR::Node * postorder (IR::HeaderStackItemRef *ref) override
 
const IR::Node * postorder (IR::Mask *expression) override
 
const IR::Node * postorder (IR::Member *field) override
 
const IR::Node * postorder (IR::Neq *neq) override
 And the Neq.
 
const IR::Node * postorder (IR::PathExpression *ref) override
 
const IR::Node * postorder (IR::Primitive *primitive) override
 

Additional Inherited Members

- Static Public Member Functions inherited from P4V1::ExpressionConverter
static void addConverter (cstring type, funcType)
 
static funcType get (cstring type)
 
- Public Attributes inherited from P4V1::ExpressionConverter
bool replaceNextWithLast
 
- Protected Types inherited from P4V1::ExpressionConverter
using funcType = std::function<const IR::Node *(const IR::Node *)>
 
- Protected Attributes inherited from P4V1::ExpressionConverter
P4::P4CoreLibraryp4lib
 
ProgramStructurestructure
 
- Static Protected Attributes inherited from P4V1::ExpressionConverter
static std::map< cstring, funcType > * cvtForType = nullptr