search for: stringtemplates

Displaying 5 results from an estimated 5 matches for "stringtemplates".

Did you mean: stringtemplate
2008 Apr 23
1
[LLVMdev] getting closer!
...> I'm always using the pure text input headline generating everything >> from Java... > > Normally I'd say that's masochism, but you may have a handle on text > templates. :) Yep, generating text is my "speciality". http:// www.stringtemplate.org :) ANTLR+StringTemplates makes it pretty darn easy to generate the IR using any ANTLR target (C, C#, Python, ActionScript, Java, soon others). Much better than having to code in C/C++ in my view [ducking]. ;) >>> For example, something like this: >> >> [snip] >> >> Oooooooh! man! tha...
2008 Apr 23
0
[LLVMdev] getting closer!
On Apr 22, 2008, at 20:19, Terence Parr wrote: > On Apr 22, 2008, at 3:27 PM, Gordon Henriksen wrote: > >>> 1. How do I know the offset (due to alignment/padding by LLVM) of >>> a pointer within an object using {...} struct type? GEP >>> instruction gets an address, of course, but how does my C >>> collector compute these. Do I need to make a
2008 Apr 23
2
[LLVMdev] getting closer!
On Apr 22, 2008, at 3:27 PM, Gordon Henriksen wrote: > If you'd like to propose clarified language once you've wrapped your > head around the framework, I'd be happy to incorporate it. Most > ideally, submit a patch against GarbageCollection.html in http://llvm.org/svn/llvm-project/llvm/trunk/docs/ > . Cool. Ok, I have already submitted some svn diffs to Chris to fix
2008 Apr 23
2
[LLVMdev] templates vs code to generate IR
Gordon reminded me that most people seem to generate code using code, whereas it has become natural for me to use templates to generate code. Let me include an example from an article I'm working on (Java centric). The same argument goes for LLVM IR templates versus using the C++ interface. Generating LLVM IR for me is super simple. Here are a few of my templates for generating IR
2008 Apr 24
0
[LLVMdev] templates vs code to generate IR
Hi Terence, The reason I remarked, actually, is that for LLVM in particular the C+ + API offers more safety, and emitting .ll generally requires at least partially reimplementing the IR object model. I think this is a topic in the FAQ. But both are perfectly valid approaches! - Gordon On Apr 23, 2008, at 14:04, Terence Parr <parrt at cs.usfca.edu> wrote: > Gordon reminded me that