diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-07 21:22:39 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-07 21:22:39 +0000 |
commit | 123cab9480812e51f6d4cb118fe685691130f625 (patch) | |
tree | d421c0e0c90c67a0f6293bf5f3948c7ca8ac1701 /utils/TableGen/CodeGenTarget.h | |
parent | aec038fa8418d21755e22ff749969bddd4428da9 (diff) |
Teach TableGen to automatically generate missing SubRegIndex instances.
The RegisterInfo.td file should only specify the indexes that sources need to
refer to. The rest is inferred.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index 4e041548f5..891b2d524c 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -121,6 +121,9 @@ public: return (i - SubRegIndices.begin()) + 1; } + // Create a new SubRegIndex with the given name. + Record *createSubRegIndex(const std::string &Name); + const std::vector<CodeGenRegisterClass> &getRegisterClasses() const { if (RegisterClasses.empty()) ReadRegisterClasses(); return RegisterClasses; |