P4C
The P4 Compiler
|
#include <dark_live_range.h>
Public Types | |
using | AccessInfo = std::pair<ordered_set<const IR::BFN::Unit *>, bool> |
using | Entry = ordered_map<StageAndAccess, AccessInfo> |
using | ReadWritePair = std::pair<const PHV::AllocSlice *, const PHV::AllocSlice *> |
using | StageAndAccess = PHV::StageAndAccess |
Public Member Functions | |
void | addAccess (const PHV::Field *f, int stage, unsigned access, const IR::BFN::Unit *unit, bool dark) |
const Entry & | at (const PHV::Field *f) const |
const AccessInfo & | at (const PHV::Field *f, int stage, unsigned access) const |
void | clear () |
bool | count (const PHV::Field *f) const |
std::optional< Entry > | getDarkLiveRange (const PHV::Field *f) const |
int | getDeparserStageValue () const |
std::optional< StageAndAccess > | getEarliestAccess (const PHV::Field *f) const |
std::optional< StageAndAccess > | getLatestAccess (const PHV::Field *f) const |
bool | hasAccess (const PHV::Field *f, int stage, unsigned access) const |
bool | hasAccess (const PHV::Field *f, StageAndAccess sa) const |
cstring | printDarkLiveRanges () const |
Pretty print the live ranges of all metadata fields. | |
void | setDeparserStageValue (int dep) |
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