Home
last modified time | relevance | path

Searched refs:GenVal (Results 1 – 3 of 3) sorted by relevance

/external/llvm/bindings/ocaml/executionengine/
Dexecutionengine_ocaml.c67 static void llvm_finalize_generic_value(value GenVal) { in llvm_finalize_generic_value() argument
68 LLVMDisposeGenericValue(Genericvalue_val(GenVal)); in llvm_finalize_generic_value()
129 CAMLprim value llvm_genericvalue_as_float(LLVMTypeRef Ty, value GenVal) { in llvm_genericvalue_as_float() argument
130 CAMLparam1(GenVal); in llvm_genericvalue_as_float()
132 LLVMGenericValueToFloat(Ty, Genericvalue_val(GenVal)))); in llvm_genericvalue_as_float()
136 CAMLprim value llvm_genericvalue_as_pointer(value GenVal) { in llvm_genericvalue_as_pointer() argument
137 return Val_op(LLVMGenericValueToPointer(Genericvalue_val(GenVal))); in llvm_genericvalue_as_pointer()
141 CAMLprim value llvm_genericvalue_as_int(value GenVal) { in llvm_genericvalue_as_int() argument
142 assert(LLVMGenericValueIntWidth(Genericvalue_val(GenVal)) <= 8 * sizeof(value) in llvm_genericvalue_as_int()
144 return Val_int(LLVMGenericValueToInt(Genericvalue_val(GenVal), 1)); in llvm_genericvalue_as_int()
[all …]
/external/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp51 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() local
52 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
53 return wrap(GenVal); in LLVMCreateGenericValueOfInt()
57 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() local
58 GenVal->PointerVal = P; in LLVMCreateGenericValueOfPointer()
59 return wrap(GenVal); in LLVMCreateGenericValueOfPointer()
63 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() local
66 GenVal->FloatVal = N; in LLVMCreateGenericValueOfFloat()
69 GenVal->DoubleVal = N; in LLVMCreateGenericValueOfFloat()
74 return wrap(GenVal); in LLVMCreateGenericValueOfFloat()
[all …]
/external/llvm/include/llvm-c/
DExecutionEngine.h65 unsigned long long LLVMGenericValueToInt(LLVMGenericValueRef GenVal,
68 void *LLVMGenericValueToPointer(LLVMGenericValueRef GenVal);
70 double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal);
72 void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal);