DWIR

class DWIR : public virtual xacc::IR

Public Functions

virtual std::string toAssemblyString(const std::string &kernelName, const std::string &accBufferVarName)

Return a assembly-like string representation of this intermediate representation

Return

virtual void persist(std::ostream &outStream)

Persist this IR instance to the given output stream.

Parameters
  • outStream:

virtual void load(std::istream &inStream)

Create this IR instance from the given input stream.

Parameters
  • inStream:

virtual void addKernel(std::shared_ptr<Function> kernel)

Add a new kernel to this IR instance.

Parameters
  • kernel: The Function instance to add as a new kernel

virtual bool kernelExists(const std::string &name)

Return true if the kernel with given name exists in this IR.

Return

exists True if kernel exists.

Parameters
  • name: The name of the kernel to return.

virtual std::shared_ptr<Function> getKernel(const std::string &name)

Return the kernel with the given name.

Return

kernel The kernel with given name.

Parameters
  • name: The name of the kernel to return.

virtual std::vector<std::shared_ptr<Function>> getKernels()

Return all of this IR instance’s kernels.

Return

kernels The kernels this IR contains.