Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/PowerPC/PPCRegisterInfo.td
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
// 16 paired even-odd consecutive GP8s. | // 16 paired even-odd consecutive GP8s. | ||||
foreach Index = { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30 } in { | foreach Index = { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30 } in { | ||||
def G8p#!srl(Index, 1) : GP8Pair<"r"#Index, Index>; | def G8p#!srl(Index, 1) : GP8Pair<"r"#Index, Index>; | ||||
} | } | ||||
// The representation of r0 when treated as the constant 0. | // The representation of r0 when treated as the constant 0. | ||||
def ZERO : GPR<0, "0">, DwarfRegAlias<R0>; | def ZERO : GPR<0, "0">, DwarfRegAlias<R0> { let isConstant = true; } | ||||
def ZERO8 : GP8<ZERO, "0">, DwarfRegAlias<X0>; | def ZERO8 : GP8<ZERO, "0">, DwarfRegAlias<X0> { let isConstant = true; } | ||||
// Representations of the frame pointer used by ISD::FRAMEADDR. | // Representations of the frame pointer used by ISD::FRAMEADDR. | ||||
def FP : GPR<0 /* arbitrary */, "**FRAME POINTER**">; | def FP : GPR<0 /* arbitrary */, "**FRAME POINTER**">; | ||||
def FP8 : GP8<FP, "**FRAME POINTER**">; | def FP8 : GP8<FP, "**FRAME POINTER**">; | ||||
// Representations of the base pointer used by setjmp. | // Representations of the base pointer used by setjmp. | ||||
def BP : GPR<0 /* arbitrary */, "**BASE POINTER**">; | def BP : GPR<0 /* arbitrary */, "**BASE POINTER**">; | ||||
def BP8 : GP8<BP, "**BASE POINTER**">; | def BP8 : GP8<BP, "**BASE POINTER**">; | ||||
▲ Show 20 Lines • Show All 816 Lines • Show Last 20 Lines |