[LLVMdev] How to pass an array to a function using GenericValue

Alan Garny agarny at hellix.com
Thu Jan 12 11:19:08 PST 2012


> > Yes, it was the entire LLVM assembly code that I generated. However, I
> > have now prepended targetdata to the code I generate (using
> > executionEngine->getTargetData()->getStringRepresentation()), but to
> > executionEngine->no
> > avail. I still get the exact same result...?!
> 
> What is the string you prepended?  If the execution engine thinks the
target is
> different to what it is then prepending the execution engine's notion of
target
> isn't going to help.

I currently prepend:

   target datalayout =
"E-p:64:64:64-S0-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:6
4:64-v64:64:64-v128:128:128-a0:0:64"

Otherwise, and as I said, I am new to LLVM, but... how could the execution
engine return a target which is different than what it is?

Alan




More information about the llvm-dev mailing list