Lines Matching refs:ee
91 func NewExecutionEngine(m Module) (ee ExecutionEngine, err error) {
93 fail := C.LLVMCreateExecutionEngineForModule(&ee.C, m.C, &cmsg)
95 ee.C = nil
102 func NewInterpreter(m Module) (ee ExecutionEngine, err error) {
104 fail := C.LLVMCreateInterpreterForModule(&ee.C, m.C, &cmsg)
106 ee.C = nil
119 func NewMCJITCompiler(m Module, options MCJITCompilerOptions) (ee ExecutionEngine, err error) {
121 …fail := C.LLVMCreateMCJITCompilerForModule(&ee.C, m.C, &options.C, C.size_t(unsafe.Sizeof(C.struct…
123 ee.C = nil
130 func (ee ExecutionEngine) Dispose() { C.LLVMDisposeExecutionEngine(ee.C) }
131 func (ee ExecutionEngine) RunStaticConstructors() { C.LLVMRunStaticConstructors(ee.C) }
132 func (ee ExecutionEngine) RunStaticDestructors() { C.LLVMRunStaticDestructors(ee.C) }
134 func (ee ExecutionEngine) RunFunction(f Value, args []GenericValue) (g GenericValue) {
140 g.C = C.LLVMRunFunction(ee.C, f.C,
145 func (ee ExecutionEngine) FreeMachineCodeForFunction(f Value) {
146 C.LLVMFreeMachineCodeForFunction(ee.C, f.C)
148 func (ee ExecutionEngine) AddModule(m Module) { C.LLVMAddModule(ee.C, m.C) }
150 func (ee ExecutionEngine) RemoveModule(m Module) {
152 C.LLVMRemoveModule(ee.C, m.C, &modtmp, nil)
155 func (ee ExecutionEngine) FindFunction(name string) (f Value) {
158 C.LLVMFindFunction(ee.C, cname, &f.C)
162 func (ee ExecutionEngine) RecompileAndRelinkFunction(f Value) unsafe.Pointer {
163 return C.LLVMRecompileAndRelinkFunction(ee.C, f.C)
166 func (ee ExecutionEngine) TargetData() (td TargetData) {
167 td.C = C.LLVMGetExecutionEngineTargetData(ee.C)
171 func (ee ExecutionEngine) AddGlobalMapping(global Value, addr unsafe.Pointer) {
172 C.LLVMAddGlobalMapping(ee.C, global.C, addr)
175 func (ee ExecutionEngine) PointerToGlobal(global Value) unsafe.Pointer {
176 return C.LLVMGetPointerToGlobal(ee.C, global.C)