[LLVMdev] getInstructionName() in XXXGenAsmWriter.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Mar 30 15:12:15 PDT 2012


On 30.03.2012, at 23:30, Jakob Stoklund Olesen wrote:

> Is this function required?
> 
> MCInstrInfo::getName(OpCode) returns the same string, and we have two copies of the string table now.
> 
> Can MCInstrPrinter refer to MCInstrInfo, and why not?

I looked into this at some point and if my memory serves me correctly using MCInstrInfo in the printer would create a cyclic dependency between the libXXXAsmPrinter and libXXXDesc for the target. I guess libXXXDesc could be refactored not to depend on libXXXAsmPrinter but I haven't checked what exactly uses it.

- Ben

> /jakob
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list