diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2013-05-31 23:45:26 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2013-05-31 23:45:26 +0000 |
commit | b1a4d9da3b7d48c40e6abee2acc9f6324dad7f84 (patch) | |
tree | 9c40c9ccfbe5f8ef21d580220db6d0f82ec1764d /llvm/utils/TableGen/CodeGenRegisters.h | |
parent | ee9143acf503e487f62423594ce52525e28ced9f (diff) | |
download | bcm5719-llvm-b1a4d9da3b7d48c40e6abee2acc9f6324dad7f84.tar.gz bcm5719-llvm-b1a4d9da3b7d48c40e6abee2acc9f6324dad7f84.zip |
Make SubRegIndex size mandatory, following r183020.
This also makes TableGen able to compute sizes/offsets of synthesized
indices representing tuples.
llvm-svn: 183061
Diffstat (limited to 'llvm/utils/TableGen/CodeGenRegisters.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenRegisters.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.h b/llvm/utils/TableGen/CodeGenRegisters.h index c83455149a6..f9edc6553ac 100644 --- a/llvm/utils/TableGen/CodeGenRegisters.h +++ b/llvm/utils/TableGen/CodeGenRegisters.h @@ -37,10 +37,10 @@ namespace llvm { Record *const TheDef; std::string Name; std::string Namespace; - uint16_t Size; - uint16_t Offset; public: + uint16_t Size; + uint16_t Offset; const unsigned EnumValue; unsigned LaneMask; @@ -54,8 +54,6 @@ namespace llvm { const std::string &getName() const { return Name; } const std::string &getNamespace() const { return Namespace; } std::string getQualifiedName() const; - uint16_t getSize() const { return Size; } - uint16_t getOffset() const { return Offset; } // Order CodeGenSubRegIndex pointers by EnumValue. struct Less { |