IterationCompiler.h 815 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef MANDEL_ITERATIONCOMPILER_H
  2. #define MANDEL_ITERATIONCOMPILER_H
  3. #include "Generators.h"
  4. #include "IterationIR.h"
  5. namespace mnd
  6. {
  7. struct ExecData;
  8. class CompiledGenerator;
  9. class MandelContext;
  10. mnd::ExecData compile(mnd::MandelContext& mndCtxt);
  11. }
  12. void squareTest();
  13. class mnd::CompiledGenerator : public mnd::MandelGenerator
  14. {
  15. std::unique_ptr<ExecData> execData;
  16. public:
  17. CompiledGenerator(MandelContext& mndContext);
  18. CompiledGenerator(std::unique_ptr<ExecData> execData);
  19. CompiledGenerator(CompiledGenerator&&);
  20. virtual ~CompiledGenerator(void);
  21. virtual void generate(const MandelInfo& info, float* data);
  22. std::string dump(void) const;
  23. };
  24. namespace mnd
  25. {
  26. CompiledGenerator compile(const ir::Formula& formula);
  27. }
  28. #endif // MANDEL_ITERATIONCOMPILER_H