Home
last modified time | relevance | path

Searched refs:GenericValue (Results 1 – 25 of 82) sorted by relevance

1234

/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DExecution.cpp40 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 …]
DInterpreter.h65 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 …]
DExternalFunctions.cpp51 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 …]
DInterpreter.cpp66 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/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp42 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 …]
DInterpreter.h56 typedef std::vector<GenericValue> ValuePlaneTy;
67 std::map<Value *, GenericValue> Values; // LLVM values used in this invocation
68 std::vector<GenericValue> VarArgs; // Values passed through an ellipsis
77 GenericValue ExitValue; // The return value of the called function
108 GenericValue runFunction(Function *F,
109 ArrayRef<GenericValue> ArgValues) override;
119 void callFunction(Function *F, ArrayRef<GenericValue> ArgVals);
175 GenericValue callExternalFunction(Function *F,
176 ArrayRef<GenericValue> ArgVals);
177 void exitCalled(GenericValue GV);
[all …]
DExternalFunctions.cpp63 typedef GenericValue (*ExFunc)(FunctionType *, ArrayRef<GenericValue>);
143 static void *ffiValueFor(Type *Ty, const GenericValue &AV, in ffiValueFor()
191 static bool ffiInvoke(RawFunc Fn, Function *F, ArrayRef<GenericValue> ArgVals, in ffiInvoke()
192 const DataLayout &TD, GenericValue &Result) { in ffiInvoke()
256 GenericValue Interpreter::callExternalFunction(Function *F, in callExternalFunction()
257 ArrayRef<GenericValue> ArgVals) { in callExternalFunction()
287 GenericValue Result; in callExternalFunction()
301 return GenericValue(); in callExternalFunction()
309 static GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit()
310 ArrayRef<GenericValue> Args) { in lle_X_atexit()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp42 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 …]
DInterpreter.h59 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 …]
DExternalFunctions.cpp52 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 …]
/external/swiftshader/third_party/LLVM/test/Bindings/Ocaml/
Dexecutionengine.ml42 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ExecutionEngine/
DGenericValue.h24 struct GenericValue { struct
38 std::vector<GenericValue> AggregateVal; argument
43 GenericValue() : IntVal(1, 0) { in GenericValue() function
47 explicit GenericValue(void *V) : PointerVal(V), IntVal(1, 0) {} in GenericValue() function
50 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV()
51 inline void *GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
/external/llvm/include/llvm/ExecutionEngine/
DGenericValue.h27 struct GenericValue { struct
41 std::vector<GenericValue> AggregateVal; argument
46 GenericValue() : IntVal(1,0) {UIntPairVal.first = 0; UIntPairVal.second = 0;} in GenericValue() function
47 explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } in GenericValue() function
50 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV()
51 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/go/llvm/
Dexecutionengine.go28 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/llvm/bindings/go/llvm/
Dexecutionengine.go28 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/include/llvm/ExecutionEngine/
DGenericValue.h26 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() function
40 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV()
41 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
/external/swiftshader/third_party/LLVM/bindings/ocaml/executionengine/
Dllvm_executionengine.mli17 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/
DExecutionEngineBindings.cpp28 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()
DExecutionEngine.cpp287 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/
DOrcMCJITReplacement.cpp26 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-7.0/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp26 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/
DMultiJITTest.cpp89 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/
DMCJIT.cpp122 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp31 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument
44 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt()
50 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer()
56 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat()
76 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
245 std::vector<GenericValue> ArgVec; in LLVMRunFunction()
250 GenericValue *Result = new GenericValue(); in LLVMRunFunction()
/external/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp30 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()

1234