P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Parser::Checksum Struct Reference

Public Member Functions

 Checksum (gress_t, pair_t)
 
bool equiv (const Checksum &) const
 
void pass1 (Parser *)
 
void pass2 (Parser *)
 
template<class REGS>
void write_config (REGS &, Parser *)
 
template<>
void write_config (Target::JBay::parser_regs &regs, Parser *parser)
 
template<>
void write_config (Target::Tofino::parser_regs &regs, Parser *parser)
 
template<class REGS>
void write_output_config (REGS &, Parser *, State::Match *, void *, unsigned &) const
 
template<>
void write_output_config (Target::JBay::parser_regs &regs, Parser *pa, State::Match *, void *_row, unsigned &used) const
 
template<>
void write_output_config (Target::Tofino::parser_regs &regs, Parser *pa, State::Match *ma, void *_map, unsigned &used) const
 

Public Attributes

unsigned add = 0
 
int addr = -1
 
Phv::Ref dest
 
unsigned dst_bit_hdr_end_pos = 0
 
bool end = false
 
gress_t gress
 
int lineno = -1
 
unsigned mask = 0
 
unsigned mul_2 = 0
 
bool shift = false
 
bool start = false
 
unsigned swap = 0
 
int tag = -1
 
unsigned type = 0
 
int unit = -1
 

Member Function Documentation

◆ write_config()

template<>
void Parser::Checksum::write_config ( Target::JBay::parser_regs & regs,
Parser * parser )

Copyright (C) 2024 Intel Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0