edA-qa mort-ora-y
2012-Nov-07 04:46 UTC
[LLVMdev] How to get a custom type from ExecutionEngine::runFunction
I'm starting to work with custom types and wondering how I can pass/return them via the ExecutionEngine? runFunction returns only a GenericValue, so it appears somehow I must make use of its pointer member. For example, how do call this function/type: %struct.mine = type { i32, i8, float, double } define void @make_struct(%struct.mine* noalias sret %agg.result, i32 %a, i8 signext %b) -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Encrypt: I'm also happy to receive encrypted mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121107/ffa8b039/attachment.sig>
Maybe Matching Threads
- [LLVMdev] Calling dispatch_async() within call to ExecutionEngine::runFunction()
- [LLVMdev] Calling dispatch_async() within call to ExecutionEngine::runFunction()
- ExecutionEngine::runFunction and libffi
- [LLVMdev] Jump back to/return from runFunction
- [LLVMdev] Jump back to/return from runFunction