[llvm-commits] [llvm] r45669 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h include/llvm/CodeGen/SelectionDAGISel.h lib/CodeGen/AsmPrinter.cpp lib/CodeGen/README.txt lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp lib/Target/CBackend/CBackend.cpp lib/Target/MSIL/MSILWriter.cpp

Gordon Henriksen gordonhenriksen at mac.com
Mon Jan 7 19:37:32 PST 2008


On 2008-01-07, at 13:59, Evan Cheng wrote:

> I don't know much about the GC work. But it is really necessary for  
> AsmPrinter to use any analysis info? That seems odd to me.

Hi Evan,

Debug information has an analogue in the MachineModuleInfo pass, which  
you'll find is required from the target-specific subclasses of  
AsmPrinter. In both cases, these are ImmutablePasses (not analyses in  
any practical sense) and are used so that PassManager does the memory  
management. They store information collected during lowering.

I would've put GC information in MMI except that the GC code is  
independent of MachineFoo. The shadow-stack algorithm works with the  
CBackend, as a for-instance.

— Gordon





More information about the llvm-commits mailing list