Home
last modified time | relevance | path

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

12

/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.h60 typedef std::vector<GenericValue> ValuePlaneTy;
71 std::map<Value *, GenericValue> Values; // LLVM values used in this invocation
72 std::vector<GenericValue> VarArgs; // Values passed through an ellipsis
97 GenericValue ExitValue; // The return value of the called function
129 GenericValue runFunction(Function *F,
130 const std::vector<GenericValue> &ArgValues) override;
140 void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);
196 GenericValue callExternalFunction(Function *F,
197 const std::vector<GenericValue> &ArgVals);
198 void exitCalled(GenericValue GV);
[all …]
DExternalFunctions.cpp52 typedef GenericValue (*ExFunc)(FunctionType *,
53 const std::vector<GenericValue> &);
133 static void *ffiValueFor(Type *Ty, const GenericValue &AV, in ffiValueFor()
182 const std::vector<GenericValue> &ArgVals, in ffiInvoke()
183 const DataLayout *TD, GenericValue &Result) { in ffiInvoke()
247 GenericValue Interpreter::callExternalFunction(Function *F, in callExternalFunction()
248 const std::vector<GenericValue> &ArgVals) { in callExternalFunction()
278 GenericValue Result; in callExternalFunction()
292 return GenericValue(); in callExternalFunction()
302 GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit()
[all …]
DInterpreter.cpp70 callFunction(AtExitHandlers.back(), std::vector<GenericValue>()); in runAtExitHandlers()
78 GenericValue
80 const std::vector<GenericValue> &ArgValues) { in runFunction()
90 std::vector<GenericValue> ActualArgs; in runFunction()
/external/llvm/include/llvm/ExecutionEngine/
DGenericValue.h26 struct GenericValue { struct
40 std::vector<GenericValue> AggregateVal; argument
45 GenericValue() : IntVal(1,0) {UIntPairVal.first = 0; UIntPairVal.second = 0;} in GenericValue() function
46 explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } in GenericValue() argument
49 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV()
50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
DExecutionEngine.h37 struct GenericValue;
207 virtual GenericValue runFunction(Function *F,
208 const std::vector<GenericValue> &ArgValues) = 0;
368 void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr,
480 GenericValue getConstantValue(const Constant *C);
481 void LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr,
/external/llvm/bindings/go/llvm/
Dexecutionengine.go27 type GenericValue struct { struct
55 func llvmGenericValueRefPtr(t *GenericValue) *C.LLVMGenericValueRef { argument
63 func NewGenericValueFromInt(t Type, n uint64, signed bool) (g GenericValue) {
67 func NewGenericValueFromPointer(p unsafe.Pointer) (g GenericValue) {
71 func NewGenericValueFromFloat(t Type, n float64) (g GenericValue) {
75 func (g GenericValue) IntWidth() int { return int(C.LLVMGenericValueIntWidth(g.C)) } argument
76 func (g GenericValue) Int(signed bool) uint64 { argument
79 func (g GenericValue) Float(t Type) float64 { argument
82 func (g GenericValue) Pointer() unsafe.Pointer { argument
85 func (g GenericValue) Dispose() { C.LLVMDisposeGenericValue(g.C) } argument
[all …]
Dexecutionengine_test.go92 exec_args := []GenericValue{NewGenericValueFromInt(Int32Type(), 10, false)}
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp26 GenericValue
28 const std::vector<GenericValue> &ArgValues) { in runFunction()
54 GenericValue rv; in runFunction()
67 GenericValue rv; in runFunction()
75 GenericValue rv; in runFunction()
86 GenericValue rv; in runFunction()
DOrcMCJITReplacement.h231 GenericValue runFunction(Function *F,
232 const std::vector<GenericValue> &ArgValues) override;
/external/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp28 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument
41 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt()
47 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer()
53 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat()
73 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
259 std::vector<GenericValue> ArgVec; in LLVMRunFunction()
264 GenericValue *Result = new GenericValue(); in LLVMRunFunction()
DExecutionEngine.cpp337 (GenericValue*)(&Array[i*PtrSize]), SBytePtr); in reset()
343 (GenericValue*)(&Array[InputArgv.size()*PtrSize]), in reset()
379 runFunction(F, std::vector<GenericValue>()); in runStaticConstructorsDestructors()
407 std::vector<GenericValue> GVArgs; in runFunctionAsMain()
408 GenericValue GVArgc; in runFunctionAsMain()
574 GenericValue ExecutionEngine::getConstantValue(const Constant *C) { in getConstantValue()
577 GenericValue Result; in getConstantValue()
628 GenericValue Result = getConstantValue(Op0); in getConstantValue()
637 GenericValue GV = getConstantValue(Op0); in getConstantValue()
643 GenericValue GV = getConstantValue(Op0); in getConstantValue()
[all …]
/external/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp125 std::vector<GenericValue> noargs; in main()
126 GenericValue gv = EE->runFunction(FooF, noargs); in main()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp129 std::vector<GenericValue> Args(1); in main()
131 GenericValue GV = EE->runFunction(FibF, Args); in main()
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp444 GenericValue MCJIT::runFunction(Function *F, in runFunction()
445 const std::vector<GenericValue> &ArgValues) { in runFunction()
471 GenericValue rv; in runFunction()
484 GenericValue rv; in runFunction()
493 GenericValue rv; in runFunction()
504 GenericValue rv; in runFunction()
DMCJIT.h253 GenericValue runFunction(Function *F,
254 const std::vector<GenericValue> &ArgValues) override;
/external/llvm/examples/BrainF/
DBrainFDriver.cpp145 std::vector<GenericValue> args; in main()
147 GenericValue gv = ee->runFunction(brainf_func, args); in main()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp232 std::vector<GenericValue> Args(1); in callFunc()
236 GenericValue gv = p->EE->runFunction(p->F, Args); in callFunc()
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/
Dtoplevel.ml41 print_float (GenericValue.as_float Codegen.double_type result);
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dtoplevel.ml41 print_float (GenericValue.as_float Codegen.double_type result);
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dtoplevel.ml41 print_float (GenericValue.as_float Codegen.double_type result);
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dtoplevel.ml41 print_float (GenericValue.as_float Codegen.double_type result);
/external/llvm/tools/lli/
Dlli.cpp640 std::vector<GenericValue> Args; in main()
641 GenericValue ResultGV; in main()
/external/llvm/docs/tutorial/
DOCamlLangImpl4.rst285 print_float (GenericValue.as_float Codegen.double_type result);
836 print_float (GenericValue.as_float Codegen.double_type result);
DOCamlLangImpl6.rst1355 print_float (GenericValue.as_float Codegen.double_type result);

12