123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include "AssemblyGenerator.h"
- using namespace zp;
- #include <iostream>
- void AssemblyGenerator::visitBlockInstruction(const BlockInstruction&)
- {
- }
- void AssemblyGenerator::visitUnionBlockInstruction(const UnionBlockInstruction& ubi)
- {
- std::cout << "UnionBlockInstruction" << std::endl;
- for (auto& a : ubi.content) {
- a->accept(*this);
- }
- }
- void AssemblyGenerator::visitIOInstruction(const IOInstruction&)
- {
- std::cout << "IOInstruction" << std::endl;
- }
- void AssemblyGenerator::visitSimpleBlockInstruction(const SimpleBlockInstruction&)
- {
- }
- void AssemblyGenerator::visitLinearLoopInstruction(const LinearLoopInstruction&)
- {
- }
- void AssemblyGenerator::visitLoopInstruction(const LoopInstruction& li)
- {
- visitUnionBlockInstruction(li);
- }
|