QCORCompiler.cpp 893 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include "QCORCompiler.hpp"

namespace qcor {

std::shared_ptr<IR> QCORCompiler::compile(const std::string &src,
                                            std::shared_ptr<Accelerator> acc) {

  return nullptr;
}

std::shared_ptr<IR> QCORCompiler::compile(const std::string &src) {
  return compile(src, nullptr);
}

Mccaskey, Alex's avatar
Mccaskey, Alex committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const std::shared_ptr<Function>
QCORCompiler::compile(std::shared_ptr<Function> f, std::shared_ptr<Accelerator> acc) {

   if (acc) {
       xacc::info("[qcor] Compiling for " + acc->name());
   }

   // Hardware Independent Transformation


   // Hardware Dependent Transformations
   if (acc) {

   }
   
   // Program Verification???

   return f;
}

36
37
38
const std::string
QCORCompiler::translate(const std::string &bufferVariable,
                          std::shared_ptr<Function> function) {
Mccaskey, Alex's avatar
Mccaskey, Alex committed
39
  xacc::error("QCORCompiler::translate() not implemented.");
40
41
42
43
  return "";
}

}