mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
TableGen: Privatize CodeGenRegisterClass::TheDef and Name.
When TableGen starts creating its own register classes, the synthesized classes won't have a Record reference. All register classes must have a name, though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -93,8 +93,9 @@ namespace llvm {
|
||||
// List of super-classes, topologocally ordered to have the larger classes
|
||||
// first. This is the same as sorting by EnumValue.
|
||||
SmallVector<CodeGenRegisterClass*, 4> SuperClasses;
|
||||
public:
|
||||
Record *TheDef;
|
||||
std::string Name;
|
||||
public:
|
||||
unsigned EnumValue;
|
||||
std::string Namespace;
|
||||
std::vector<MVT::SimpleValueType> VTs;
|
||||
@@ -106,7 +107,12 @@ namespace llvm {
|
||||
DenseMap<Record*,Record*> SubRegClasses;
|
||||
std::string AltOrderSelect;
|
||||
|
||||
const std::string &getName() const;
|
||||
// Return the Record that defined this class, or NULL if the class was
|
||||
// created by TableGen.
|
||||
Record *getDef() const { return TheDef; }
|
||||
|
||||
const std::string &getName() const { return Name; }
|
||||
std::string getQualifiedName() const;
|
||||
const std::vector<MVT::SimpleValueType> &getValueTypes() const {return VTs;}
|
||||
unsigned getNumValueTypes() const { return VTs.size(); }
|
||||
|
||||
|
Reference in New Issue
Block a user