[LLVMdev] New TargetSpec 'llvmnote'

Anton Korobeynikov anton at korobeynikov.info
Wed Feb 23 14:40:03 PST 2011


> Unfortunately clang doesn't appear to be aware of this. It's forcing me
> to specify a triple (or at least, I haven't discovered a way of
> generating target-independent IR with it yet). If I want to, say,
> generate code where ints are 64 bits but have a 32 bit alignment, as far
> as I know I have to go create a custom target and rebuild everything.
You cannot generate platform-independent IR out of C.
See http://llvm.org/docs/FAQ.html#platformindependent for more info

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list