diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-05-31 02:53:58 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-05-31 02:53:58 +0000 |
commit | d979686bb47f2dcdca60f0a088f59d1964346453 (patch) | |
tree | 7ded909f4b2f02c1575f296c85359b6696571bbc /lib/Target/Mips/MipsRegisterInfo.td | |
parent | 6e032942cf58d1c41f88609a1cec74eb74940ecd (diff) | |
download | external_llvm-d979686bb47f2dcdca60f0a088f59d1964346453.zip external_llvm-d979686bb47f2dcdca60f0a088f59d1964346453.tar.gz external_llvm-d979686bb47f2dcdca60f0a088f59d1964346453.tar.bz2 |
This patch implements the thread local storage. Implemented are General
Dynamic, Initial Exec and Local Exec TLS models.
Patch by Sasa Stankovic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsRegisterInfo.td')
-rw-r--r-- | lib/Target/Mips/MipsRegisterInfo.td | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsRegisterInfo.td b/lib/Target/Mips/MipsRegisterInfo.td index db00b0d..3134f99 100644 --- a/lib/Target/Mips/MipsRegisterInfo.td +++ b/lib/Target/Mips/MipsRegisterInfo.td @@ -44,6 +44,11 @@ class AFPR<bits<5> num, string n, list<Register> subregs> let SubRegIndices = [sub_fpeven, sub_fpodd]; } +// Mips Hardware Registers +class HWR<bits<5> num, string n> : MipsReg<n> { + let Num = num; +} + //===----------------------------------------------------------------------===// // Registers //===----------------------------------------------------------------------===// @@ -143,6 +148,9 @@ let Namespace = "Mips" in { // Status flags register def FCR31 : Register<"31">; + + // Hardware register $29 + def HWR29 : Register<"29">; } //===----------------------------------------------------------------------===// @@ -262,3 +270,5 @@ def CCR : RegisterClass<"Mips", [i32], 32, [FCR31]>; // Hi/Lo Registers def HILO : RegisterClass<"Mips", [i32], 32, [HI, LO]>; +// Hardware registers +def HWRegs : RegisterClass<"Mips", [i32], 32, [HWR29]>; |