[llvm-commits] [llvm] r75153 - in /llvm/trunk: include/llvm/CodeGen/ lib/CodeGen/SelectionDAG/ lib/Target/ARM/ lib/Target/CellSPU/ lib/Target/MSP430/ lib/Target/Mips/ lib/Target/PIC16/ lib/Target/PowerPC/ lib/Target/Sparc/ lib/Target/X86/ lib/Target/XCore/ lib/VMCore/ utils/TableGen/

Chris Lattner clattner at apple.com
Thu Jul 9 11:18:52 PDT 2009


On Jul 9, 2009, at 10:57 AM, Owen Anderson wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=75153&view=rev
> Log:
> Thread LLVMContext through MVT and related parts of SDISel.

Nice.

> +++ llvm/trunk/include/llvm/CodeGen/SelectionDAG.h Thu Jul  9  
> 12:57:24 2009
> @@ -125,7 +126,8 @@
>   /// init - Prepare this SelectionDAG to process code in the given
>   /// MachineFunction.
>   ///
> -  void init(MachineFunction &mf, MachineModuleInfo *mmi,  
> DwarfWriter *dw);
> +  void init(MachineFunction &mf, MachineModuleInfo *mmi,  
> DwarfWriter *dw,
> +            LLVMContext* C);

init doesn't need to take a context here, it can get it from  
mf.getFunction()->getParent()->getContext();  Alternatively, maybe  
MachineModuleInfo should have a context pointer.

-Chris



More information about the llvm-commits mailing list