Searched refs:GenVal (Results 1 – 3 of 3) sorted by relevance
67 static void llvm_finalize_generic_value(value GenVal) { in llvm_finalize_generic_value() argument68 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() argument130 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() argument137 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() argument142 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 …]
51 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() local52 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()53 return wrap(GenVal); in LLVMCreateGenericValueOfInt()57 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() local58 GenVal->PointerVal = P; in LLVMCreateGenericValueOfPointer()59 return wrap(GenVal); in LLVMCreateGenericValueOfPointer()63 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() local66 GenVal->FloatVal = N; in LLVMCreateGenericValueOfFloat()69 GenVal->DoubleVal = N; in LLVMCreateGenericValueOfFloat()74 return wrap(GenVal); in LLVMCreateGenericValueOfFloat()[all …]
65 unsigned long long LLVMGenericValueToInt(LLVMGenericValueRef GenVal,68 void *LLVMGenericValueToPointer(LLVMGenericValueRef GenVal);70 double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal);72 void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal);