[LLVMdev] How to get a custom type from ExecutionEngine::runFunction

edA-qa mort-ora-y eda-qa at disemia.com
Tue Nov 6 20:46:30 PST 2012


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>


More information about the llvm-dev mailing list