8#ifndef CONTROL_PLANE_BYTESTRINGS_H_
9#define CONTROL_PLANE_BYTESTRINGS_H_
14#include "lib/big_int.h"
35int getTypeWidth(
const IR::Type &type,
const TypeMap &typeMap);
39std::optional<std::string>
stringRepr(
const IR::Constant *constant,
int width);
43std::optional<std::string>
stringRepr(
const IR::BoolLiteral *constant,
int width);
47std::optional<std::string>
stringRepr(
const TypeMap &typeMap,
const IR::Expression *expression);
TODO(antonin): High level goals of the generator go here!!
Definition dpdk/control-plane/bfruntime_arch_handler.h:44
std::optional< std::string > stringRepr(const IR::Constant *constant, int width)
Definition bytestrings.cpp:56
int getTypeWidth(const IR::Type &type, const TypeMap &typeMap)
Definition bytestrings.cpp:15
std::optional< std::string > stringReprConstant(big_int value, int width)
Definition bytestrings.cpp:29
Definition constantParsing.h:22
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:13