Searched refs:GenVal (Results 1 – 3 of 3) sorted by relevance
28 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() local29 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()30 return wrap(GenVal); in LLVMCreateGenericValueOfInt()34 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() local35 GenVal->PointerVal = P; in LLVMCreateGenericValueOfPointer()36 return wrap(GenVal); in LLVMCreateGenericValueOfPointer()40 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() local43 GenVal->FloatVal = N; in LLVMCreateGenericValueOfFloat()46 GenVal->DoubleVal = N; in LLVMCreateGenericValueOfFloat()51 return wrap(GenVal); in LLVMCreateGenericValueOfFloat()[all …]
67 static void llvm_finalize_generic_value(value GenVal) { in llvm_finalize_generic_value() argument68 LLVMDisposeGenericValue(Genericvalue_val(GenVal)); in llvm_finalize_generic_value()126 CAMLprim value llvm_genericvalue_as_float(LLVMTypeRef Ty, value GenVal) { in llvm_genericvalue_as_float() argument127 CAMLparam1(GenVal); in llvm_genericvalue_as_float()129 LLVMGenericValueToFloat(Ty, Genericvalue_val(GenVal)))); in llvm_genericvalue_as_float()133 CAMLprim value llvm_genericvalue_as_pointer(value GenVal) { in llvm_genericvalue_as_pointer() argument134 return Val_op(LLVMGenericValueToPointer(Genericvalue_val(GenVal))); in llvm_genericvalue_as_pointer()138 CAMLprim value llvm_genericvalue_as_int(value GenVal) { in llvm_genericvalue_as_int() argument139 assert(LLVMGenericValueIntWidth(Genericvalue_val(GenVal)) <= 8 * sizeof(value) in llvm_genericvalue_as_int()141 return Val_int(LLVMGenericValueToInt(Genericvalue_val(GenVal), 1)); in llvm_genericvalue_as_int()[all …]
47 unsigned long long LLVMGenericValueToInt(LLVMGenericValueRef GenVal,50 void *LLVMGenericValueToPointer(LLVMGenericValueRef GenVal);52 double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal);54 void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal);