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 | bf3c1251e073be26830b41be1af16df7b6dd9860 (patch) | |
| tree | bbcc24b041633ea0c77b5f8751f77b3c7bdd8cb5 /llvm/lib/Target/Mips/MipsInstrInfo.h | |
| parent | 4503e20ae6260d097d1becb99e523b2251eeac89 (diff) | |
| download | bcm5719-llvm-bf3c1251e073be26830b41be1af16df7b6dd9860.tar.gz bcm5719-llvm-bf3c1251e073be26830b41be1af16df7b6dd9860.zip | |
This patch implements the thread local storage. Implemented are General
Dynamic, Initial Exec and Local Exec TLS models.
Patch by Sasa Stankovic
llvm-svn: 132322
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.h b/llvm/lib/Target/Mips/MipsInstrInfo.h index 5fdbf1f230a..abf67733f08 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.h +++ b/llvm/lib/Target/Mips/MipsInstrInfo.h @@ -146,7 +146,21 @@ namespace MipsII { /// MO_ABS_HI/LO - Represents the hi or low part of an absolute symbol /// address. MO_ABS_HI, - MO_ABS_LO + MO_ABS_LO, + + /// MO_TLSGD - Represents the offset into the global offset table at which + // the module ID and TSL block offset reside during execution (General + // Dynamic TLS). + MO_TLSGD, + + /// MO_GOTTPREL - Represents the offset from the thread pointer (Initial + // Exec TLS). + MO_GOTTPREL, + + /// MO_TPREL_HI/LO - Represents the hi and low part of the offset from + // the thread pointer (Local Exec TLS). + MO_TPREL_HI, + MO_TPREL_LO }; } |

