46 #include <boost/algorithm/string/replace.hpp> 49 : endianess(NATIVE_ENDIANESS), direction(INOUT), num_registers(0), bambu_address(0), pointer(
false)
56 if(endianess_string ==
"UPER")
60 if(endianess_string ==
"LOWER")
62 return LITTLE_ENDIANESS;
64 if(endianess_string ==
"NATIVE")
66 return NATIVE_ENDIANESS;
75 if(direction_string ==
"IN")
79 if(direction_string ==
"OUT")
83 if(direction_string ==
"IN OUT")
93 return boost::replace_all_copy(name,
"-",
"_");
105 return asn_types.find(normalized)->second;
exceptions managed by PandA
#define THROW_UNREACHABLE(str_expr)
helper function used to specify that some points should never be reached
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...