search for: llvm_ee_find_funct

Displaying 1 result from an estimated 1 matches for "llvm_ee_find_funct".

2010 Feb 28
2
[LLVMdev] Tag number of OCaml Variant in executionengine
...t be there is only two constructors, one is None represented as unboxed int, the other is Some represented as a tagged block, and OCaml runtime may only distinguish them as the structures, but not the tag number. Zjz 233 /* string -> ExecutionEngine.t -> llvalue option */ 234 CAMLprim value llvm_ee_find_function(value Name, LLVMExecutionEngineRef EE) { 235 CAMLparam1(Name); 236 CAMLlocal1(Option); 237 LLVMValueRef Found; 238 if (LLVMFindFunction(EE, String_val(Name), &Found)) 239 CAMLreturn(Val_unit); 240 Option = alloc(1, 1); 241 Field(Option, 0) = Val_op(Found); 242 CAMLreturn(Op...