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 | 945e8655dd0658abb2132b1bfaaad2d30fe818b2 (patch) | |
| tree | 5e80b6b72c9c85a99da104237f64f1f6368784d0 /llvm/utils/TableGen/CodeGenTarget.h | |
| parent | da636b37836a6e563b34e111d00e906aa9551aa3 (diff) | |
| download | bcm5719-llvm-945e8655dd0658abb2132b1bfaaad2d30fe818b2.tar.gz bcm5719-llvm-945e8655dd0658abb2132b1bfaaad2d30fe818b2.zip | |
Refactor code for numbering instructions into CodeGenTarget.
llvm-svn: 19758
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.h')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.h b/llvm/utils/TableGen/CodeGenTarget.h index ac5306e4efb..2d899154473 100644 --- a/llvm/utils/TableGen/CodeGenTarget.h +++ b/llvm/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; |

