roadrunner  2.6.0
Fast simulator for SBML models
Public Member Functions | Static Public Member Functions | List of all members
rr::Compiler Class Referenceabstract

interface to manipulate 'compiler' settings. More...

#include <rrCompiler.h>

Inheritance diagram for rr::Compiler:
rr::CCompiler rrllvm::LLVMCompiler

Public Member Functions

virtual std::string getCompiler () const =0
 
virtual bool setCompiler (const std::string &compiler)=0
 
virtual std::string getCompilerLocation () const =0
 
virtual bool setCompilerLocation (const std::string &path)=0
 
virtual std::string getSupportCodeFolder () const =0
 
virtual bool setSupportCodeFolder (const std::string &path)=0
 
virtual std::string getDefaultTargetTriple ()=0
 getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produce code for. More...
 
virtual std::string getProcessTriple ()=0
 getProcessTriple() - Return an appropriate target triple for generating code to be loaded into the current process, e.g. More...
 
virtual std::string getHostCPUName ()=0
 getHostCPUName - Get the LLVM name for the host CPU. More...
 
virtual std::string getVersion ()=0
 get the version of the compiler.
 

Static Public Member Functions

static std::string getDefaultCompiler ()
 implement the couple Compiler methods, this will go, here for source compatiblity.
 
static CompilerNew ()
 

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

◆ getDefaultTargetTriple()

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 std::string in the format of: CPU_TYPE-VENDOR-OPERATING_SYSTEM or CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM

Implemented in rrllvm::LLVMCompiler, and rr::CCompiler.

◆ getHostCPUName()

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.

Implemented in rrllvm::LLVMCompiler, and rr::CCompiler.

◆ getProcessTriple()

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.

Implemented in rrllvm::LLVMCompiler, and rr::CCompiler.


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