[LLVMdev] variable sized structs in LLVM
Chris Lattner
sabre at nondot.org
Fri Jun 24 11:09:45 PDT 2005
On Tue, 21 Jun 2005, Carl Friedrich Bolz wrote:
> Reid Spencer wrote:
>> Yes, for that you need TargetData:
>>
>> http://illuvium.net/docs/doxygen/classllvm_1_1TargetData.html
>
> I feared that that would be the answer :-). We're not using the LLVM-API at
> the moment. We're just generating a .ll file 'by hand', e.g. via simple
> string operations.
This is just fine. The only advantage to using the llvm C++ API's are
compile time speed and integration with the JIT. If neither of those is a
priority yet, emitting text is a great way to go!
> I guess we get what we deserve :-).
Not at all, this is a great way to go.
-Chris
--
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/
More information about the llvm-dev
mailing list