P4C
The P4 Compiler
Loading...
Searching...
No Matches
InsertParserClotChecksums::CreateParserPrimitives Struct Reference
Inheritance diagram for InsertParserClotChecksums::CreateParserPrimitives:
[legend]

Public Member Functions

 CreateParserPrimitives (const PhvInfo &phv, const CollectParserInfo &parser_info, const ClotInfo &clotInfo, const CollectClotChecksumFields &clot_checksum_fields)
 
IR::BFN::ChecksumAdd * create_checksum_add (const Clot *clot, const IR::BFN::PacketRVal *rval, bool swap)
 
IR::BFN::ChecksumDepositToClot * create_checksum_deposit (const Clot *clot)
 
void end_apply () override
 
bool preorder (const IR::BFN::ParserState *state) override
 

Public Attributes

const CollectClotChecksumFields & clot_checksum_fields
 
ordered_map< const IR::BFN::Parser *, ordered_map< const Clot *, ordered_set< const IR::BFN::ParserState * > > > clot_to_states
 
const ClotInfo & clotInfo
 
const CollectParserInfo & parser_info
 
const PhvInfo & phv
 
ordered_map< const IR::BFN::ParserState *, ordered_map< const Clot *, std::vector< const IR::BFN::ParserChecksumPrimitive * > > > state_to_clot_primitives