[LLVMdev] Extending AsmPrinter

Chris Lattner sabre at nondot.org
Wed Aug 15 09:32:26 PDT 2007


On Tue, 14 Aug 2007, David Greene wrote:
>> Yes, this is one advantage, another is that we wouldn't have to fix the
>> same bug in multiple places :)
>
> Right.  I've figured out where I need to make the changes in AsmWriterEmitter
> given the current design.

Ok, cool.

> I'm trying out a few interesting things here based on custom streambufs.
> It requires some surgery to AsmPrinters as a std::ostream won't work
> anymore due to the enhanced functionality of the custom streambufs.
> Is this still interesting to the larger LLVM community?  One thing I have
> to do is figure out how to handle asm dumps to cerr.

It really depends on what you mean.  I've found that iostreams are 
extremely slow, much slower than C stdio streams.  Eventually I'd like to 
move them to stdio, not to more complex streambufs :)

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list