P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Section Class Reference

#include <sections.h>

Inheritance diagram for Section:
[legend]

Static Public Member Functions

static void asm_section (char *name, VECTOR(value_t) args, value_t data)
 
static bool no_sections_in_assembly ()
 
static void output_all (json::map &ctxtJson)
 
static void process_all ()
 
static bool section_in_assembly (const char *name)
 
static int start_section (int lineno, char *name, VECTOR(value_t) args)
 
static Sectiontest_get (const char *name)
 

Protected Member Functions

 Section (const char *name_)
 
virtual void process ()
 optionally process the data if not done during parsing
 
virtual void start (int lineno, VECTOR(value_t) args)
 process the arguments on the same line as the heading
 

Detailed Description

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 A Section represents a top level section in assembly Current sections include: version, phv, parser, deparser, stage, dynhash, primitives

Member Function Documentation

◆ process()

virtual void Section::process ( )
inlineprotectedvirtual

optionally process the data if not done during parsing

Reimplemented in AsmStage, and Deparser.

◆ start()

virtual void Section::start ( int lineno,
VECTOR(value_t) args )
inlineprotectedvirtual

process the arguments on the same line as the heading

Reimplemented in Deparser.