<div dir="ltr">It seems like what I want is `GenericValue ExecutionEngine::getConstantValue(const Constant *C)`, but this is a protected function. Is there another proper way to do this? <div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 29, 2018 at 11:41 AM Ray Wang <<a href="mailto:wangray007@gmail.com">wangray007@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a list of arguments for a CallInst that I would like to pass to another compiled LLVM function with execEngine->runFunction(). How can I convert all the Values to GenericValues for runFunction?<div><br></div><div>Some example arguments are types %struct.CPUARMState* %env, %struct.ARMCPRegInfo*, and i64.<br><div><div><br></div><div>I can use LLVMCreateGenericValueOfPointer for the pointer arguments, but I don't know how to convert the i64. </div></div></div><div><br></div><div>Thanks!</div></div>
</blockquote></div>