AssemblyGenerator.cpp 771 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "AssemblyGenerator.h"
  2. using namespace zp;
  3. #include <iostream>
  4. void AssemblyGenerator::visitBlockInstruction(const BlockInstruction&)
  5. {
  6. }
  7. void AssemblyGenerator::visitUnionBlockInstruction(const UnionBlockInstruction& ubi)
  8. {
  9. std::cout << "UnionBlockInstruction" << std::endl;
  10. for (auto& a : ubi.content) {
  11. a->accept(*this);
  12. }
  13. }
  14. void AssemblyGenerator::visitIOInstruction(const IOInstruction&)
  15. {
  16. std::cout << "IOInstruction" << std::endl;
  17. }
  18. void AssemblyGenerator::visitSimpleBlockInstruction(const SimpleBlockInstruction&)
  19. {
  20. }
  21. void AssemblyGenerator::visitLinearLoopInstruction(const LinearLoopInstruction&)
  22. {
  23. }
  24. void AssemblyGenerator::visitLoopInstruction(const LoopInstruction& li)
  25. {
  26. visitUnionBlockInstruction(li);
  27. }