search for: llvm_object_structur

Displaying 4 results from an estimated 4 matches for "llvm_object_structur".

Did you mean: llvm_object_structure
2010 Aug 19
2
[LLVMdev] using external functions from llvm
...ll external functions from llvm? The only guide I found was this: http://www.gearleaf.com/blog/post/44, and it doesn't seem to be working for me. I have a function: llvm::GenericValue lle_X_create_number_object(llvm::FunctionType* ft, const std::vector<llvm::GenericValue>& args) { llvm_object_structure* result = new llvm_object_structure; result->typeIdx = TypeSystem::number; result->data = reinterpret_cast<unsigned char*>(new double(args[0].DoubleVal)); llvm::GenericValue gv; gv.PointerVal = reinterpret_cast<void*>(result); return gv; } defined in an extern "C&...
2010 Aug 19
3
[LLVMdev] using external functions from llvm
...uide I found was this: > http://www.gearleaf.com/blog/post/44, and it doesn't seem to be working > for me. > > I have a function: > > llvm::GenericValue lle_X_create_number_object(llvm::FunctionType* ft, const > std::vector<llvm::GenericValue>& args) > { > llvm_object_structure* result = new llvm_object_structure; > result->typeIdx = TypeSystem::number; > result->data = reinterpret_cast<unsigned char*>(new > double(args[0].DoubleVal)); > llvm::GenericValue gv; > gv.PointerVal = reinterpret_cast<void*>(result); > return gv; &g...
2010 Aug 19
0
[LLVMdev] using external functions from llvm
...m? The only guide I found was this: http://www.gearleaf.com/blog/post/44, and it doesn't seem to be working for me. > > I have a function: > > llvm::GenericValue lle_X_create_number_object(llvm::FunctionType* ft, const std::vector<llvm::GenericValue>& args) > { > llvm_object_structure* result = new llvm_object_structure; > result->typeIdx = TypeSystem::number; > result->data = reinterpret_cast<unsigned char*>(new double(args[0].DoubleVal)); > llvm::GenericValue gv; > gv.PointerVal = reinterpret_cast<void*>(result); > return gv; > }...
2010 Aug 20
0
[LLVMdev] using external functions from llvm
...://www.gearleaf.com/blog/post/44, and it doesn't seem to be working >> for me. >> >> I have a function: >> >> llvm::GenericValue lle_X_create_number_object(llvm::FunctionType* ft, >> const std::vector<llvm::GenericValue>& args) >> { >> llvm_object_structure* result = new llvm_object_structure; >> result->typeIdx = TypeSystem::number; >> result->data = reinterpret_cast<unsigned char*>(new >> double(args[0].DoubleVal)); >> llvm::GenericValue gv; >> gv.PointerVal = reinterpret_cast<void*>(result);...