2026-11-07 20:44:35 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
#include "expression.hpp"
|
|
|
|
|
#include "dyn-pipeline.hpp"
|
|
|
|
|
|
|
|
|
|
namespace Assembler {
|
|
|
|
|
|
|
|
|
|
void assemble(
|
|
|
|
|
const Expression::TreeNode& root,
|
|
|
|
|
std::vector<DynamicPipeline::Command>& program,
|
|
|
|
|
std::array<double, DYN_PIPELINE_MEM_SIZE>& memory,
|
|
|
|
|
int& mem_used);
|
2026-11-08 18:25:35 +02:00
|
|
|
void to_ooe(
|
|
|
|
|
std::vector<DynamicPipeline::CommandOOE>& p_ooe,
|
|
|
|
|
std::vector<DynamicPipeline::Command>& p);
|
2026-11-07 20:44:35 +02:00
|
|
|
|
|
|
|
|
}
|