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.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 …]
DInterpreter.cpp77 GenericValue Interpreter::runFunction(Function *F, in runFunction()
78 ArrayRef<GenericValue> ArgValues) { in runFunction()
89 ArrayRef<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() argument
46 explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } in GenericValue() function
49 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV()
50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
DExecutionEngine.h38 struct GenericValue;
218 virtual GenericValue runFunction(Function *F,
219 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/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 …]
Dexecutionengine_test.go92 exec_args := []GenericValue{NewGenericValueFromInt(Int32Type(), 10, false)}
/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()
DOrcMCJITReplacement.h226 GenericValue runFunction(Function *F,
227 ArrayRef<GenericValue> ArgValues) override;
/external/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp29 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument
42 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt()
48 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer()
54 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat()
74 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
239 std::vector<GenericValue> ArgVec; in LLVMRunFunction()
244 GenericValue *Result = new GenericValue(); in LLVMRunFunction()
DExecutionEngine.cpp360 (GenericValue*)(&Array[i*PtrSize]), SBytePtr); in reset()
366 (GenericValue*)(&Array[InputArgv.size()*PtrSize]), in reset()
430 std::vector<GenericValue> GVArgs; in runFunctionAsMain()
431 GenericValue GVArgc; in runFunctionAsMain()
597 GenericValue ExecutionEngine::getConstantValue(const Constant *C) { in getConstantValue()
600 GenericValue Result; in getConstantValue()
651 GenericValue Result = getConstantValue(Op0); in getConstantValue()
660 GenericValue GV = getConstantValue(Op0); in getConstantValue()
666 GenericValue GV = getConstantValue(Op0); in getConstantValue()
672 GenericValue GV = getConstantValue(Op0); in getConstantValue()
[all …]
/external/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp124 std::vector<GenericValue> noargs; in main()
125 GenericValue gv = EE->runFunction(FooF, noargs); in main()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp128 std::vector<GenericValue> Args(1); in main()
130 GenericValue GV = EE->runFunction(FibF, Args); in main()
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp479 GenericValue MCJIT::runFunction(Function *F, ArrayRef<GenericValue> ArgValues) { in runFunction()
505 GenericValue rv; in runFunction()
518 GenericValue rv; in runFunction()
527 GenericValue rv; in runFunction()
538 GenericValue rv; in runFunction()
DMCJIT.h264 GenericValue runFunction(Function *F,
265 ArrayRef<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.cpp233 std::vector<GenericValue> Args(1); in callFunc()
237 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/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/examples/OCaml-Kaleidoscope/Chapter4/
Dtoplevel.ml41 print_float (GenericValue.as_float Codegen.double_type result);
/external/llvm/tools/lli/
Dlli.cpp615 std::vector<GenericValue> Args; in main()
616 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