xo-pyjit: + llvm_version()
This commit is contained in:
parent
faed5f59c6
commit
48efe6b319
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "xo/jit/MachPipeline.hpp"
|
||||
#include "xo/pyutil/pycaller.hpp"
|
||||
#include "xo/pyutil/pyutil.hpp"
|
||||
#include <llvm/Config/llvm-config.h>
|
||||
#include <pybind11/stl.h>
|
||||
|
||||
namespace xo {
|
||||
|
|
@ -97,6 +98,9 @@ namespace xo {
|
|||
//pycaller<double, double>::declare_once(m);
|
||||
//pycaller<double, double, double>::declare_once(m);
|
||||
|
||||
m.def("llvm_version", []() { return LLVM_VERSION_STRING; },
|
||||
py::doc("llvm_version() reports compile-time llvm version string (via [llvm-config.h])"));
|
||||
|
||||
py::class_<MachPipeline, rp<MachPipeline>>(m, "MachPipeline")
|
||||
.def_static("make", &MachPipeline::make,
|
||||
py::doc("Create machine pipeline for in-process code generation"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue