Home
last modified time | relevance | path

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

12

/external/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);
137 void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);
186 GenericValue callExternalFunction(Function *F,
187 const std::vector<GenericValue> &ArgVals);
188 void exitCalled(GenericValue GV);
[all …]
DExternalFunctions.cpp51 typedef GenericValue (*ExFunc)(FunctionType *,
52 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 TargetData *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.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/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/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() argument
40 inline GenericValue PTOGV(void *P) { return GenericValue(P); } in PTOGV()
41 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } in GVTOP()
DExecutionEngine.h34 struct GenericValue;
229 virtual GenericValue runFunction(Function *F,
230 const std::vector<GenericValue> &ArgValues) = 0;
336 void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr,
461 GenericValue getConstantValue(const Constant *C);
462 void LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr,
/external/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 …]
Dllvm_executionengine.ml17 module GenericValue = struct module
73 external run_function: Llvm.llvalue -> GenericValue.t array -> t ->
74 GenericValue.t
/external/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()
189 std::vector<GenericValue> ArgVec; in LLVMRunFunction()
194 GenericValue *Result = new GenericValue(); in LLVMRunFunction()
DExecutionEngine.cpp286 EE->StoreValueToMemory(PTOGV(Dest), (GenericValue*)(Array+i*PtrSize), in reset()
292 (GenericValue*)(Array+InputArgv.size()*PtrSize), in reset()
328 runFunction(F, std::vector<GenericValue>()); in runStaticConstructorsDestructors()
356 std::vector<GenericValue> GVArgs; in runFunctionAsMain()
357 GenericValue GVArgc; in runFunctionAsMain()
533 GenericValue ExecutionEngine::getConstantValue(const Constant *C) { in getConstantValue()
536 GenericValue Result; in getConstantValue()
558 GenericValue Result = getConstantValue(Op0); in getConstantValue()
567 GenericValue GV = getConstantValue(Op0); in getConstantValue()
573 GenericValue GV = getConstantValue(Op0); in getConstantValue()
[all …]
/external/chromium/chrome/browser/policy/
Duser_policy_cache.cc226 Value* UserPolicyCache::DecodeValue(const em::GenericValue& value) const { in DecodeValue()
231 case em::GenericValue::VALUE_TYPE_BOOL: in DecodeValue()
235 case em::GenericValue::VALUE_TYPE_INT64: in DecodeValue()
239 case em::GenericValue::VALUE_TYPE_STRING: in DecodeValue()
243 case em::GenericValue::VALUE_TYPE_DOUBLE: in DecodeValue()
247 case em::GenericValue::VALUE_TYPE_BYTES: in DecodeValue()
253 case em::GenericValue::VALUE_TYPE_BOOL_ARRAY: { in DecodeValue()
260 case em::GenericValue::VALUE_TYPE_INT64_ARRAY: { in DecodeValue()
271 case em::GenericValue::VALUE_TYPE_STRING_ARRAY: { in DecodeValue()
279 case em::GenericValue::VALUE_TYPE_DOUBLE_ARRAY: { in DecodeValue()
Duser_policy_cache.h16 class GenericValue; variable
56 Value* DecodeValue(const em::GenericValue& value) const;
/external/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/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp152 GenericValue MCJIT::runFunction(Function *F, in runFunction()
153 const std::vector<GenericValue> &ArgValues) { in runFunction()
179 GenericValue rv; in runFunction()
192 GenericValue rv; in runFunction()
201 GenericValue rv; in runFunction()
212 GenericValue rv; in runFunction()
DMCJIT.h56 virtual GenericValue runFunction(Function *F,
57 const std::vector<GenericValue> &ArgValues);
/external/llvm/lib/ExecutionEngine/JIT/
DJIT.cpp389 GenericValue JIT::runFunction(Function *F, in runFunction()
390 const std::vector<GenericValue> &ArgValues) { in runFunction()
416 GenericValue rv; in runFunction()
429 GenericValue rv; in runFunction()
437 GenericValue rv; in runFunction()
443 GenericValue rv; in runFunction()
454 GenericValue rv; in runFunction()
510 const GenericValue &AV = ArgValues[i]; in runFunction()
552 GenericValue Result = runFunction(Stub, std::vector<GenericValue>()); in runFunction()
DJIT.h117 virtual GenericValue runFunction(Function *F,
118 const std::vector<GenericValue> &ArgValues);
/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.cpp129 std::vector<GenericValue> Args(1); in main()
131 GenericValue GV = EE->runFunction(FibF, Args); in main()
/external/chromium/chrome/browser/policy/proto/
Dold_generic_format.proto22 message GenericValue { message
52 optional GenericValue value = 2;
/external/llvm/examples/BrainF/
DBrainFDriver.cpp144 std::vector<GenericValue> args; in main()
146 GenericValue gv = ee->runFunction(brainf_func, args); in main()
/external/llvm/include/llvm-c/
DExecutionEngine.h143 struct GenericValue;
155 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef )
/external/chromium/net/tools/testserver/
Ddevice_management.py289 entry_value = dm.GenericValue()
291 entry_value.value_type = dm.GenericValue.VALUE_TYPE_BOOL
294 entry_value.value_type = dm.GenericValue.VALUE_TYPE_INT64
297 entry_value.value_type = dm.GenericValue.VALUE_TYPE_STRING
300 entry_value.value_type = dm.GenericValue.VALUE_TYPE_STRING_ARRAY
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp229 std::vector<GenericValue> Args(1); in callFunc()
233 GenericValue gv = p->EE->runFunction(p->F, Args); in callFunc()

12