/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 40 static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) { in SetValue() 53 static void executeFAddInst(GenericValue &Dest, GenericValue Src1, in executeFAddInst() 54 GenericValue Src2, Type *Ty) { in executeFAddInst() 64 static void executeFSubInst(GenericValue &Dest, GenericValue Src1, in executeFSubInst() 65 GenericValue Src2, Type *Ty) { in executeFSubInst() 75 static void executeFMulInst(GenericValue &Dest, GenericValue Src1, in executeFMulInst() 76 GenericValue Src2, Type *Ty) { in executeFMulInst() 86 static void executeFDivInst(GenericValue &Dest, GenericValue Src1, in executeFDivInst() 87 GenericValue Src2, Type *Ty) { in executeFDivInst() 97 static void executeFRemInst(GenericValue &Dest, GenericValue Src1, in executeFRemInst() [all …]
|
D | Interpreter.h | 65 typedef std::vector<GenericValue> ValuePlaneTy; 74 std::map<Value *, GenericValue> Values; // LLVM values used in this invocation 75 std::vector<GenericValue> VarArgs; // Values passed through an ellipsis 84 GenericValue ExitValue; // The return value of the called function 115 virtual GenericValue runFunction(Function *F, 116 const std::vector<GenericValue> &ArgValues); 131 void callFunction(Function *F, const std::vector<GenericValue> &ArgVals); 181 GenericValue callExternalFunction(Function *F, 182 const std::vector<GenericValue> &ArgVals); 183 void exitCalled(GenericValue GV); [all …]
|
D | ExternalFunctions.cpp | 51 typedef GenericValue (*ExFunc)(FunctionType *, 52 const std::vector<GenericValue> &); 132 static void *ffiValueFor(Type *Ty, const GenericValue &AV, in ffiValueFor() 181 const std::vector<GenericValue> &ArgVals, in ffiInvoke() 182 const TargetData *TD, GenericValue &Result) { in ffiInvoke() 246 GenericValue Interpreter::callExternalFunction(Function *F, in callExternalFunction() 247 const std::vector<GenericValue> &ArgVals) { in callExternalFunction() 277 GenericValue Result; in callExternalFunction() 291 return GenericValue(); in callExternalFunction() 307 GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit() [all …]
|
D | Interpreter.cpp | 66 callFunction(AtExitHandlers.back(), std::vector<GenericValue>()); in runAtExitHandlers() 74 GenericValue 76 const std::vector<GenericValue> &ArgValues) { in runFunction() 86 std::vector<GenericValue> ActualArgs; in runFunction()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 42 static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) { in SetValue() 55 static void executeFAddInst(GenericValue &Dest, GenericValue Src1, in executeFAddInst() 56 GenericValue Src2, Type *Ty) { in executeFAddInst() 66 static void executeFSubInst(GenericValue &Dest, GenericValue Src1, in executeFSubInst() 67 GenericValue Src2, Type *Ty) { in executeFSubInst() 77 static void executeFMulInst(GenericValue &Dest, GenericValue Src1, in executeFMulInst() 78 GenericValue Src2, Type *Ty) { in executeFMulInst() 88 static void executeFDivInst(GenericValue &Dest, GenericValue Src1, in executeFDivInst() 89 GenericValue Src2, Type *Ty) { in executeFDivInst() 99 static void executeFRemInst(GenericValue &Dest, GenericValue Src1, in executeFRemInst() [all …]
|
D | Interpreter.h | 59 typedef std::vector<GenericValue> ValuePlaneTy; 70 std::map<Value *, GenericValue> Values; // LLVM values used in this invocation 71 std::vector<GenericValue> VarArgs; // Values passed through an ellipsis 96 GenericValue ExitValue; // The return value of the called function 127 GenericValue runFunction(Function *F, 128 ArrayRef<GenericValue> ArgValues) override; 138 void callFunction(Function *F, ArrayRef<GenericValue> ArgVals); 194 GenericValue callExternalFunction(Function *F, 195 ArrayRef<GenericValue> ArgVals); 196 void exitCalled(GenericValue GV); [all …]
|
D | ExternalFunctions.cpp | 52 typedef GenericValue (*ExFunc)(FunctionType *, ArrayRef<GenericValue>); 132 static void *ffiValueFor(Type *Ty, const GenericValue &AV, in ffiValueFor() 180 static bool ffiInvoke(RawFunc Fn, Function *F, ArrayRef<GenericValue> ArgVals, in ffiInvoke() 181 const DataLayout &TD, GenericValue &Result) { in ffiInvoke() 245 GenericValue Interpreter::callExternalFunction(Function *F, in callExternalFunction() 246 ArrayRef<GenericValue> ArgVals) { in callExternalFunction() 276 GenericValue Result; in callExternalFunction() 290 return GenericValue(); in callExternalFunction() 299 static GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit() 300 ArrayRef<GenericValue> Args) { in lle_X_atexit() [all …]
|
D | Interpreter.cpp | 77 GenericValue Interpreter::runFunction(Function *F, in runFunction() 78 ArrayRef<GenericValue> ArgValues) { in runFunction() 89 ArrayRef<GenericValue> ActualArgs = in runFunction()
|
/external/swiftshader/third_party/LLVM/test/Bindings/Ocaml/ |
D | executionengine.ml | 42 let ptrgv = GenericValue.of_pointer tu in 43 assert (tu = GenericValue.as_pointer ptrgv); 45 let fpgv = GenericValue.of_float double_type 2. in 46 assert (2. = GenericValue.as_float double_type fpgv); 48 let intgv = GenericValue.of_int i32_type 3 in 49 assert (3 = GenericValue.as_int intgv); 51 let i32gv = GenericValue.of_int32 i32_type (Int32.of_int 4) in 52 assert ((Int32.of_int 4) = GenericValue.as_int32 i32gv); 54 let nigv = GenericValue.of_nativeint i32_type (Nativeint.of_int 5) in 55 assert ((Nativeint.of_int 5) = GenericValue.as_nativeint nigv); [all …]
|
/external/llvm/include/llvm/ExecutionEngine/ |
D | GenericValue.h | 27 struct GenericValue { struct 41 std::vector<GenericValue> AggregateVal; argument 46 GenericValue() : IntVal(1,0) {UIntPairVal.first = 0; UIntPairVal.second = 0;} in GenericValue() argument 47 explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } in GenericValue() argument 50 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV() 51 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
|
D | ExecutionEngine.h | 37 struct GenericValue; 217 virtual GenericValue runFunction(Function *F, 218 ArrayRef<GenericValue> ArgValues) = 0; 379 void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, 492 GenericValue getConstantValue(const Constant *C); 493 void LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr,
|
/external/swiftshader/third_party/LLVM/include/llvm/ExecutionEngine/ |
D | GenericValue.h | 26 struct GenericValue { struct 36 GenericValue() : DoubleVal(0.0), IntVal(1,0) {} in GenericValue() argument 37 explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } in GenericValue() argument 40 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV() 41 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
|
D | ExecutionEngine.h | 32 struct GenericValue; 228 virtual GenericValue runFunction(Function *F, 229 const std::vector<GenericValue> &ArgValues) = 0; 315 void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, 440 GenericValue getConstantValue(const Constant *C); 441 void LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr,
|
/external/llvm/bindings/go/llvm/ |
D | executionengine.go | 28 type GenericValue struct { struct 56 func llvmGenericValueRefPtr(t *GenericValue) *C.LLVMGenericValueRef { argument 64 func NewGenericValueFromInt(t Type, n uint64, signed bool) (g GenericValue) { 68 func NewGenericValueFromPointer(p unsafe.Pointer) (g GenericValue) { 72 func NewGenericValueFromFloat(t Type, n float64) (g GenericValue) { 76 func (g GenericValue) IntWidth() int { return int(C.LLVMGenericValueIntWidth(g.C)) } argument 77 func (g GenericValue) Int(signed bool) uint64 { argument 80 func (g GenericValue) Float(t Type) float64 { argument 83 func (g GenericValue) Pointer() unsafe.Pointer { argument 86 func (g GenericValue) Dispose() { C.LLVMDisposeGenericValue(g.C) } argument [all …]
|
/external/swiftshader/third_party/LLVM/bindings/ocaml/executionengine/ |
D | llvm_executionengine.mli | 17 module GenericValue: sig module 18 (** [GenericValue.t] is a boxed union type used to portably pass arguments to 22 See the struct [llvm::GenericValue]. *) 27 [llvm::GenericValue::DoubleVal] and [llvm::GenericValue::FloatVal]. *) 31 field [llvm::GenericValue::PointerVal]. *) 35 [w]. See the field [llvm::GenericValue::IntVal]. *) 39 [w]. See the field [llvm::GenericValue::IntVal]. *) 43 bitwidth [w]. See the field [llvm::GenericValue::IntVal]. *) 48 [w]. See the field [llvm::GenericValue::IntVal]. *) 52 floating point type [fpty]. See the fields [llvm::GenericValue::DoubleVal] [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/ |
D | ExecutionEngineBindings.cpp | 28 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() 34 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() 40 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() 60 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt() 191 std::vector<GenericValue> ArgVec; in LLVMRunFunction() 196 GenericValue *Result = new GenericValue(); in LLVMRunFunction()
|
D | ExecutionEngine.cpp | 287 EE->StoreValueToMemory(PTOGV(Dest), (GenericValue*)(Array+i*PtrSize), in reset() 293 (GenericValue*)(Array+InputArgv.size()*PtrSize), in reset() 330 runFunction(F, std::vector<GenericValue>()); in runStaticConstructorsDestructors() 358 std::vector<GenericValue> GVArgs; in runFunctionAsMain() 359 GenericValue GVArgc; in runFunctionAsMain() 523 GenericValue ExecutionEngine::getConstantValue(const Constant *C) { in getConstantValue() 526 GenericValue Result; in getConstantValue() 548 GenericValue Result = getConstantValue(Op0); in getConstantValue() 557 GenericValue GV = getConstantValue(Op0); in getConstantValue() 563 GenericValue GV = getConstantValue(Op0); in getConstantValue() [all …]
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | OrcMCJITReplacement.cpp | 26 GenericValue 28 ArrayRef<GenericValue> ArgValues) { in runFunction() 54 GenericValue rv; in runFunction() 67 GenericValue rv; in runFunction() 75 GenericValue rv; in runFunction() 86 GenericValue rv; in runFunction()
|
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/JIT/ |
D | MultiJITTest.cpp | 89 std::vector<GenericValue> noargs; in TEST() 90 GenericValue gv1 = EE1->runFunction(FooF1, noargs); in TEST() 91 GenericValue gv2 = EE2->runFunction(FooF2, noargs); in TEST() 119 std::vector<GenericValue> noargs; in TEST() 120 GenericValue gv1 = EE1->runFunction(FooF1, noargs); in TEST() 121 GenericValue gv2 = EE2->runFunction(FooF2, noargs); in TEST()
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 122 GenericValue MCJIT::runFunction(Function *F, in runFunction() 123 const std::vector<GenericValue> &ArgValues) { in runFunction() 149 GenericValue rv; in runFunction() 162 GenericValue rv; in runFunction() 171 GenericValue rv; in runFunction() 182 GenericValue rv; in runFunction() 221 return GenericValue(); in runFunction()
|
D | MCJIT.h | 58 virtual GenericValue runFunction(Function *F, 59 const std::vector<GenericValue> &ArgValues);
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngineBindings.cpp | 30 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument 43 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() 49 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() 55 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() 75 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt() 242 std::vector<GenericValue> ArgVec; in LLVMRunFunction() 247 GenericValue *Result = new GenericValue(); in LLVMRunFunction()
|
D | ExecutionEngine.cpp | 356 (GenericValue*)(&Array[i*PtrSize]), SBytePtr); in reset() 362 (GenericValue*)(&Array[InputArgv.size()*PtrSize]), in reset() 426 std::vector<GenericValue> GVArgs; in runFunctionAsMain() 427 GenericValue GVArgc; in runFunctionAsMain() 592 GenericValue ExecutionEngine::getConstantValue(const Constant *C) { in getConstantValue() 595 GenericValue Result; in getConstantValue() 646 GenericValue Result = getConstantValue(Op0); in getConstantValue() 655 GenericValue GV = getConstantValue(Op0); in getConstantValue() 661 GenericValue GV = getConstantValue(Op0); in getConstantValue() 667 GenericValue GV = getConstantValue(Op0); in getConstantValue() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/ |
D | JIT.cpp | 387 GenericValue JIT::runFunction(Function *F, in runFunction() 388 const std::vector<GenericValue> &ArgValues) { in runFunction() 414 GenericValue rv; in runFunction() 427 GenericValue rv; in runFunction() 436 GenericValue rv; in runFunction() 447 GenericValue rv; in runFunction() 504 const GenericValue &AV = ArgValues[i]; in runFunction() 546 GenericValue Result = runFunction(Stub, std::vector<GenericValue>()); in runFunction()
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineSpecConstantTests.cpp | 60 class GenericValue class 63 GenericValue (void) { clear(); } in GenericValue() function in vkt::pipeline::__anon21c2cf770111::GenericValue 66 GenericValue (const void* data, const deUint32 size) in GenericValue() function in vkt::pipeline::__anon21c2cf770111::GenericValue 79 inline GenericValue makeValueBool32 (const bool a) { return GenericValue(&a, sizeof(a)); } in makeValueBool32() 80 inline GenericValue makeValueInt32 (const deInt32 a) { return GenericValue(&a, sizeof(a)); } in makeValueInt32() 82 inline GenericValue makeValueUint32 (const deUint32 a) { return GenericValue(&a, sizeof(a)); } in makeValueUint32() 84 inline GenericValue makeValueFloat32 (const float a) { return GenericValue(&a, sizeof(a)); } in makeValueFloat32() 85 inline GenericValue makeValueFloat64 (const double a) { return GenericValue(&a, sizeof(a)); } in makeValueFloat64() 92 GenericValue specValue; //!< specialized value passed by the API 102 …2 specID_, const std::string declarationCode_, const deUint32 size_, const GenericValue specValue_) in SpecConstant() [all …]
|