From d6488671736d0a5aaee1218748b94d8c68f33716 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19758 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeGenTarget.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils/TableGen/CodeGenTarget.h') 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 + &NumberedInstructions); + + /// getPHIInstruction - Return the designated PHI instruction. /// const CodeGenInstruction &getPHIInstruction() const; -- cgit v1.2.3