diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-02 18:10:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-02 18:10:06 +0000 |
commit | ec6f096c36f4144ff9b3b24c2939720cdcbb7bcc (patch) | |
tree | d1bdfedd5e517a609dc72fd5226736142caa5c34 /utils/TableGen/CodeGenTarget.h | |
parent | 1aabe1b49371f7e7a9898a3060653fcfa6ee497c (diff) |
a bunch of random cleanup, move a helper to CGT where it belongs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index 930747fc36..66cbce1a83 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -101,6 +101,10 @@ public: if (Registers.empty()) ReadRegisters(); return Registers; } + + /// getRegisterByName - If there is a register with the specific AsmName, + /// return it. + const CodeGenRegister *getRegisterByName(StringRef Name) const; const std::vector<Record*> &getSubRegIndices() const { if (SubRegIndices.empty()) ReadSubRegIndices(); |