Define base class for WrapperPICPat.

llvm-svn: 146081
This commit is contained in:
Akira Hatanaka 2011-12-07 21:54:54 +00:00
parent c5b5a8d8b1
commit 6820eebde1
1 changed files with 7 additions and 7 deletions

View File

@ -973,15 +973,15 @@ def : Pat<(add CPURegs:$hi, (MipsTprelLo tglobaltlsaddr:$lo)),
(ADDiu CPURegs:$hi, tglobaltlsaddr:$lo)>; (ADDiu CPURegs:$hi, tglobaltlsaddr:$lo)>;
// wrapper_pic // wrapper_pic
class WrapperPICPat<SDNode node>: class WrapperPICPat<SDNode node, Instruction ADDiuOp, Register GPReg>:
Pat<(MipsWrapperPIC node:$in), Pat<(MipsWrapperPIC node:$in),
(ADDiu GP, node:$in)>; (ADDiuOp GPReg, node:$in)>;
def : WrapperPICPat<tglobaladdr>; def : WrapperPICPat<tglobaladdr, ADDiu, GP>;
def : WrapperPICPat<tconstpool>; def : WrapperPICPat<tconstpool, ADDiu, GP>;
def : WrapperPICPat<texternalsym>; def : WrapperPICPat<texternalsym, ADDiu, GP>;
def : WrapperPICPat<tblockaddress>; def : WrapperPICPat<tblockaddress, ADDiu, GP>;
def : WrapperPICPat<tjumptable>; def : WrapperPICPat<tjumptable, ADDiu, GP>;
// Mips does not have "not", so we expand our way // Mips does not have "not", so we expand our way
def : Pat<(not CPURegs:$in), def : Pat<(not CPURegs:$in),