LLVMCompiler

class LLVMCompiler : public rr::Compiler

class LLVMCompiler

Public Functions

LLVMCompiler()
virtual ~LLVMCompiler()
virtual std::string getCompiler() const
virtual bool setCompiler(const std::string &compiler)
virtual std::string getCompilerLocation() const
virtual bool setCompilerLocation(const std::string &path)
virtual std::string getSupportCodeFolder() const
virtual bool setSupportCodeFolder(const std::string &path)
virtual std::string getDefaultTargetTriple()

getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produce code for.

The target triple is a std::string in the format of: CPU_TYPE-VENDOR-OPERATING_SYSTEM or CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM

virtual std::string getProcessTriple()

getProcessTriple() - Return an appropriate target triple for generating code to be loaded into the current process, e.g.

when using the JIT.

virtual std::string getHostCPUName()

getHostCPUName - Get the LLVM name for the host CPU.

The particular format of the name is target dependent, and suitable for passing as -mcpu to the target which matches the host.

Returns:

- The host CPU name, or empty if the CPU could not be determined.

virtual std::string getVersion()

get the version of the compiler.