47 "review the A2 opcode cost table for the new bytecode format");
50 "review the A2 cost of every added or removed opcode");
94 default:
return "unreviewed";
105 default:
return "unreviewed";
122 std::array<std::uint32_t, kWcetTimingClassCount>
132 if(value != std::numeric_limits<std::uint32_t>::max()) ++value;
135inline void add_size(std::uint32_t &value, std::size_t added)
noexcept
137 const std::size_t room =
138 std::numeric_limits<std::uint32_t>::max() - value;
139 value +=
static_cast<std::uint32_t
>(added > room ? room : added);
145 const std::size_t timing =
148 timing >= report.artifact_opcode_counts.size()) {
152 increment(report.artifact_opcode_counts[timing]);
157 for(
const std::uint32_t offset : region.instruction_offsets) {
158 if(offset >= region.code.size()) {
161 add_opcode(report,
static_cast<Op>(region.code[offset]));
169 report.opcode_table_reviewed = report.opcode_table_reviewed &&
173 for(
const std::uint32_t offset :
program.instruction_offsets) {
174 if(offset >=
program.code.size()) {
211 ?
program.worst_case_instructions : 0U;
218 static_cast<std::size_t
>(timing)];
void add_artifact_programs(WcetReport &report, const Program &program) noexcept
void add_opcode(WcetReport &report, Op op) noexcept
void increment(std::uint32_t &value) noexcept
void add_region(WcetReport &report, const SfcRegionInfo ®ion) noexcept
void add_size(std::uint32_t &value, std::size_t added) noexcept
void add_program_body(WcetReport &report, const Program &program) noexcept
constexpr std::size_t kWcetTimingClassCount
constexpr const char * wcet_timing_class_name(WcetTimingClass timing) noexcept
constexpr std::size_t kWcetReviewedOpcodeCount
constexpr std::uint32_t kWcetReviewedBytecodeFormatVersion
constexpr std::uint32_t kBytecodeFormatVersion
WcetReport make_wcet_report(const Program &program) noexcept
constexpr WcetOpcodeCost wcet_opcode_cost(Op op) noexcept
constexpr const char * wcet_budget_rule_name(WcetBudgetRule rule) noexcept
std::vector< Program > programs
std::vector< SfcTransitionInfo > transitions
std::vector< SfcActionInfo > actions
WcetBudgetRule budget_rule
WcetTimingClass timing_class
std::uint64_t worst_case_work_units
std::uint16_t max_call_depth
std::uint32_t bytecode_format_version
std::uint32_t program_count
std::uint16_t max_instance_depth
bool requires_platform_calibration
std::uint32_t native_fb_instances
bool wall_clock_bound_available
std::uint32_t unreviewed_opcodes
bool opcode_table_reviewed
std::array< std::uint32_t, kWcetTimingClassCount > artifact_opcode_counts
bool requires_native_fb_profile