JIT Compilation
- class RoadRunner.Compiler
The Compiler object provides information about the JIT compiler currently in use.
- Compiler.getCompiler()
gets the name of the JIT compiler, i.e. “LLVM” means we are using the LLVM JIT compiler.
- Return type:
str
- Compiler.getVersion()
get the version of the JIT compiler.
- Return type:
str
- Compiler.getDefaultTargetTriple()
Return the default target triple the compiler has been configured to produce code for. A ‘triple’ is just a string that contains three items, it is called ‘triple’ as that is a LLVM historical convention.
The target triple is a string in the format of: CPU_TYPE-VENDOR-OPERATING_SYSTEM
or
CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM
- Return type:
str
- Compiler.getProcessTriple()
Return an appropriate target triple for generating code to be loaded into the current process, e.g. when using the JIT.
- Return type:
str
- Compiler.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.
return - The host CPU name, or empty if the CPU could not be determined.
- Return type:
str
- Compiler.setCompiler(compiler)
A legacy method that currently does not do anything.
- Compiler.getCompilerLocation()
A legacy method that currently does not do anything.
- Compiler.setCompilerLocation(loc)
A legacy method that currently does not do anything.
- Compiler.getSupportCodeFolder()
A legacy method that currently does not do anything.
- Compiler.setSupportCodeFolder(path)
A legacy method that currently does not do anything.