/external/llvm/include/llvm/ExecutionEngine/ |
GenericValue.h | 1 //===-- GenericValue.h - Represent any type of LLVM value -------*- C++ -*-===// 10 // The GenericValue class is used to represent an LLVM value of arbitrary type. 26 struct GenericValue { 36 GenericValue() : DoubleVal(0.0), IntVal(1,0) {} 37 explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } 40 inline GenericValue PTOGV(void *P) { return GenericValue(P); } 41 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; }
|
ExecutionEngine.h | 32 struct GenericValue; 231 virtual GenericValue runFunction(Function *F, 232 const std::vector<GenericValue> &ArgValues) = 0; 316 /// GenericValue *. It is not a pointer to a GenericValue containing the 318 void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, 443 GenericValue getConstantValue(const Constant *C); 444 void LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
Interpreter.h | 19 #include "llvm/ExecutionEngine/GenericValue.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) [all...] |
Execution.cpp | 40 static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) { 53 static void executeFAddInst(GenericValue &Dest, GenericValue Src1, 54 GenericValue Src2, Type *Ty) { 64 static void executeFSubInst(GenericValue &Dest, GenericValue Src1, 65 GenericValue Src2, Type *Ty) { 75 static void executeFMulInst(GenericValue &Dest, GenericValue Src1, 76 GenericValue Src2, Type *Ty) [all...] |
ExternalFunctions.cpp | 51 typedef GenericValue (*ExFunc)(FunctionType *, 52 const std::vector<GenericValue> &); 132 static void *ffiValueFor(Type *Ty, const GenericValue &AV, 181 const std::vector<GenericValue> &ArgVals, 182 const TargetData *TD, GenericValue &Result) { 246 GenericValue Interpreter::callExternalFunction(Function *F, 247 const std::vector<GenericValue> &ArgVals) { 277 GenericValue Result; 291 return GenericValue(); 299 // Visual Studio warns about returning GenericValue in extern "C" linkag [all...] |
Interpreter.cpp | 66 callFunction(AtExitHandlers.back(), std::vector<GenericValue>()); 74 GenericValue 76 const std::vector<GenericValue> &ArgValues) { 86 std::vector<GenericValue> ActualArgs;
|
/external/llvm/test/Bindings/Ocaml/ |
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/chromium/chrome/browser/policy/ |
user_policy_cache.h | 16 class GenericValue; 56 Value* DecodeValue(const em::GenericValue& value) const;
|
user_policy_cache.cc | 226 Value* UserPolicyCache::DecodeValue(const em::GenericValue& value) const { 231 case em::GenericValue::VALUE_TYPE_BOOL: 235 case em::GenericValue::VALUE_TYPE_INT64: 239 case em::GenericValue::VALUE_TYPE_STRING: 243 case em::GenericValue::VALUE_TYPE_DOUBLE: 247 case em::GenericValue::VALUE_TYPE_BYTES: 253 case em::GenericValue::VALUE_TYPE_BOOL_ARRAY: { 260 case em::GenericValue::VALUE_TYPE_INT64_ARRAY: { 271 case em::GenericValue::VALUE_TYPE_STRING_ARRAY: { 279 case em::GenericValue::VALUE_TYPE_DOUBLE_ARRAY: [all...] |
/external/llvm/lib/ExecutionEngine/MCJIT/ |
MCJIT.h | 58 virtual GenericValue runFunction(Function *F, 59 const std::vector<GenericValue> &ArgValues);
|
MCJIT.cpp | 14 #include "llvm/ExecutionEngine/GenericValue.h" 121 GenericValue MCJIT::runFunction(Function *F, 122 const std::vector<GenericValue> &ArgValues) { 148 GenericValue rv; 161 GenericValue rv; 170 GenericValue rv; 181 GenericValue rv; 220 return GenericValue();
|
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngineBindings.cpp | 16 #include "llvm/ExecutionEngine/GenericValue.h" 28 GenericValue *GenVal = new GenericValue(); 34 GenericValue *GenVal = new GenericValue(); 40 GenericValue *GenVal = new GenericValue(); 60 GenericValue *GenVal = unwrap(GenValRef); 191 std::vector<GenericValue> ArgVec; 196 GenericValue *Result = new GenericValue() [all...] |
ExecutionEngine.cpp | 21 #include "llvm/ExecutionEngine/GenericValue.h" 287 EE->StoreValueToMemory(PTOGV(Dest), (GenericValue*)(Array+i*PtrSize), 293 (GenericValue*)(Array+InputArgv.size()*PtrSize), 330 runFunction(F, std::vector<GenericValue>()); 358 std::vector<GenericValue> GVArgs; 359 GenericValue GVArgc; 523 /// \brief Converts a Constant* into a GenericValue, including handling of 525 GenericValue ExecutionEngine::getConstantValue(const Constant *C) { 528 GenericValue Result; 550 GenericValue Result = getConstantValue(Op0) [all...] |
/external/llvm/bindings/ocaml/executionengine/ |
llvm_executionengine.mli | 17 module GenericValue: sig 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]. * [all...] |
llvm_executionengine.ml | 17 module GenericValue = struct 73 external run_function: Llvm.llvalue -> GenericValue.t array -> t -> 74 GenericValue.t
|
/external/llvm/unittests/ExecutionEngine/JIT/ |
MultiJITTest.cpp | 14 #include "llvm/ExecutionEngine/GenericValue.h" 86 std::vector<GenericValue> noargs; 87 GenericValue gv1 = EE1->runFunction(FooF1, noargs); 88 GenericValue gv2 = EE2->runFunction(FooF2, noargs); 116 std::vector<GenericValue> noargs; 117 GenericValue gv1 = EE1->runFunction(FooF1, noargs); 118 GenericValue gv2 = EE2->runFunction(FooF2, noargs);
|
/external/llvm/examples/HowToUseJIT/ |
HowToUseJIT.cpp | 44 #include "llvm/ExecutionEngine/GenericValue.h" 124 std::vector<GenericValue> noargs; 125 GenericValue gv = EE->runFunction(FooF, noargs);
|
/external/llvm/examples/BrainF/ |
BrainFDriver.cpp | 32 #include "llvm/ExecutionEngine/GenericValue.h" 145 std::vector<GenericValue> args; 147 GenericValue gv = ee->runFunction(brainf_func, args);
|
/external/llvm/examples/Fibonacci/ |
fibonacci.cpp | 34 #include "llvm/ExecutionEngine/GenericValue.h" 129 std::vector<GenericValue> Args(1); 131 GenericValue GV = EE->runFunction(FibF, Args);
|
/external/llvm/include/llvm-c/ |
ExecutionEngine.h | 132 struct GenericValue; 144 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef )
|
/external/llvm/lib/ExecutionEngine/JIT/ |
JIT.cpp | 24 #include "llvm/ExecutionEngine/GenericValue.h" 387 GenericValue JIT::runFunction(Function *F, 388 const std::vector<GenericValue> &ArgValues) { 414 GenericValue rv; 427 GenericValue rv; 436 GenericValue rv; 447 GenericValue rv; 498 // Convert all of the GenericValue arguments over to constants. Note that we 504 const GenericValue &AV = ArgValues[i]; 546 GenericValue Result = runFunction(Stub, std::vector<GenericValue>()) [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/ |
toplevel.ml | 41 print_float (GenericValue.as_float Codegen.double_type result);
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/ |
toplevel.ml | 41 print_float (GenericValue.as_float Codegen.double_type result);
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/ |
toplevel.ml | 41 print_float (GenericValue.as_float Codegen.double_type result);
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/ |
toplevel.ml | 41 print_float (GenericValue.as_float Codegen.double_type result);
|