diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-22 18:58:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-22 18:58:51 +0000 |
commit | d6488671736d0a5aaee1218748b94d8c68f33716 (patch) | |
tree | b218490b3ed80a627edef94927a70f1eea52b855 /utils/TableGen/CodeGenTarget.h | |
parent | 615ed993e115f8bc97ff0678aa861629fec93880 (diff) | |
download | llvm-d6488671736d0a5aaee1218748b94d8c68f33716.tar.gz llvm-d6488671736d0a5aaee1218748b94d8c68f33716.tar.bz2 llvm-d6488671736d0a5aaee1218748b94d8c68f33716.tar.xz |
Refactor code for numbering instructions into CodeGenTarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index ac5306e4ef..2d89915447 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -93,6 +93,12 @@ public: inst_iterator inst_begin() const { return getInstructions().begin(); } inst_iterator inst_end() const { return Instructions.end(); } + /// getInstructionsByEnumValue - Return all of the instructions defined by the + /// target, ordered by their enum value. + void getInstructionsByEnumValue(std::vector<const CodeGenInstruction*> + &NumberedInstructions); + + /// getPHIInstruction - Return the designated PHI instruction. /// const CodeGenInstruction &getPHIInstruction() const; |