Searched refs:GenVal (Results 1 – 5 of 5) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/ |
D | ExecutionEngineBindings.cpp | 28 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() local 29 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 30 return wrap(GenVal); in LLVMCreateGenericValueOfInt() 34 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() local 35 GenVal->PointerVal = P; in LLVMCreateGenericValueOfPointer() 36 return wrap(GenVal); in LLVMCreateGenericValueOfPointer() 40 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() local 43 GenVal->FloatVal = N; in LLVMCreateGenericValueOfFloat() 46 GenVal->DoubleVal = N; in LLVMCreateGenericValueOfFloat() 51 return wrap(GenVal); in LLVMCreateGenericValueOfFloat() [all …]
|
/external/swiftshader/third_party/LLVM/bindings/ocaml/executionengine/ |
D | executionengine_ocaml.c | 67 static void llvm_finalize_generic_value(value GenVal) { in llvm_finalize_generic_value() argument 68 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() argument 127 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() argument 134 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() argument 139 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 …]
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngineBindings.cpp | 43 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() local 44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 45 return wrap(GenVal); in LLVMCreateGenericValueOfInt() 49 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() local 50 GenVal->PointerVal = P; in LLVMCreateGenericValueOfPointer() 51 return wrap(GenVal); in LLVMCreateGenericValueOfPointer() 55 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() local 58 GenVal->FloatVal = N; in LLVMCreateGenericValueOfFloat() 61 GenVal->DoubleVal = N; in LLVMCreateGenericValueOfFloat() 66 return wrap(GenVal); in LLVMCreateGenericValueOfFloat() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm-c/ |
D | ExecutionEngine.h | 47 unsigned long long LLVMGenericValueToInt(LLVMGenericValueRef GenVal, 50 void *LLVMGenericValueToPointer(LLVMGenericValueRef GenVal); 52 double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal); 54 void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal);
|
/external/llvm/include/llvm-c/ |
D | ExecutionEngine.h | 64 unsigned long long LLVMGenericValueToInt(LLVMGenericValueRef GenVal, 67 void *LLVMGenericValueToPointer(LLVMGenericValueRef GenVal); 69 double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal); 71 void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal);
|