libRoadRunner C++ API  1.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
rr::Compiler Class Referenceabstract

#include <rrCompiler.h>

Inherited by rrllvm::LLVMCompiler.

Public Member Functions

virtual std::string getDefaultTargetTriple ()=0
 
virtual std::string getProcessTriple ()=0
 
virtual std::string getHostCPUName ()=0
 
virtual std::string getVersion ()=0
 

Static Public Member Functions

static std::string getDefaultCompiler ()
 

Detailed Description

interface to manipulate 'compiler' settings.

In the C generating model sytem, an external C compiler is used to compile generated C code. However, in the LLVM system, there is no code generation nor compilation, so this interface is not really usefull, but is implemented for compatiblity with the C system.

Member Function Documentation

std::string rr::Compiler::getDefaultCompiler ( )
static

implement the couple Compiler methods, this will go, here for source compatiblity.

virtual std::string rr::Compiler::getDefaultTargetTriple ( )
pure virtual

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

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

virtual std::string rr::Compiler::getHostCPUName ( )
pure virtual

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 rr::Compiler::getProcessTriple ( )
pure virtual

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 rr::Compiler::getVersion ( )
pure virtual

get the version of the compiler.


The documentation for this class was generated from the following files: