From 945e8655dd0658abb2132b1bfaaad2d30fe818b2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 22 Jan 2005 18:58:51 +0000 Subject: Refactor code for numbering instructions into CodeGenTarget. llvm-svn: 19758 --- llvm/utils/TableGen/CodeGenTarget.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/utils/TableGen/CodeGenTarget.h') 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 + &NumberedInstructions); + + /// getPHIInstruction - Return the designated PHI instruction. /// const CodeGenInstruction &getPHIInstruction() const; -- cgit v1.2.3