17#ifndef CONTROL_PLANE_BYTESTRINGS_H_
18#define CONTROL_PLANE_BYTESTRINGS_H_
23#include "lib/big_int.h"
38namespace ControlPlaneAPI {
44int getTypeWidth(
const IR::Type &type,
const TypeMap &typeMap);
48std::optional<std::string>
stringRepr(
const IR::Constant *constant,
int width);
52std::optional<std::string>
stringRepr(
const IR::BoolLiteral *constant,
int width);
56std::optional<std::string>
stringRepr(
const TypeMap &typeMap,
const IR::Expression *expression);
std::optional< std::string > stringRepr(const IR::Constant *constant, int width)
Definition bytestrings.cpp:67
int getTypeWidth(const IR::Type &type, const TypeMap &typeMap)
Definition bytestrings.cpp:26
std::optional< std::string > stringReprConstant(big_int value, int width)
Definition bytestrings.cpp:40
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24