roadrunner  2.6.0
Fast simulator for SBML models
/home/vsts/work/1/s/source/llvm/JitFactory.h
LoadSBMLOptions opt;
opt.setLLVMBackend(LoadSBMLOptions::MCJIT); // or LoadSBMLOptions::LLJit;
std::unique_ptr<Jit> j = JitFactory::makeJitEngine(opt.modelGeneratorOpt);
// OR
Config::setValue(LLVM_BACKEND, Config::LLVM_BACKEND_VALUES::MCJIT); // default
// OR
Config::setValue(LLVM_BACKEND, Config::LLVM_BACKEND_VALUES::LLJIT); // alternative
std::unique_ptr<Jit> j = makeJitEngine();
C_DECL_SPEC bool rrcCallConv setValue(RRHandle handle, const char *symbolId, const double value)
Set the value for a given symbol, use getAvailableTimeCourseSymbols(void) for a list of symbols.
//
// Created by Ciaran on 15/11/2021.
//
#ifndef ROADRUNNER_JITFACTORY_H
#define ROADRUNNER_JITFACTORY_H
#include "rrConfig.h"
#include "MCJit.h"
#include "LLJit.h"
#include "Jit.h"
namespace rrllvm {
class JitFactory {
public:
JitFactory() = default;
static std::unique_ptr<Jit> makeJitEngine(std::uint32_t opt);
static std::unique_ptr<Jit> makeJitEngine();
};
}
#endif //ROADRUNNER_JITFACTORY_H
static std::unique_ptr< Jit > makeJitEngine()
Create a Jit engine using the global options in Config.
Definition: JitFactory.cpp:22