From 99b218218c0ca3ebfdd568ddfeafa07842e9d69d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 28 Aug 2008 23:21:34 +0000 Subject: Add a target callback for FastISel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55512 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/FastISelEmitter.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils/TableGen/FastISelEmitter.cpp') diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp index 305158f471..fedb44e4d0 100644 --- a/utils/TableGen/FastISelEmitter.cpp +++ b/utils/TableGen/FastISelEmitter.cpp @@ -351,6 +351,14 @@ void FastISelMap::PrintClass(std::ostream &OS) { } OS << "\n"; + OS << "bool TargetSelectInstruction(Instruction *I,\n"; + OS << " " + "DenseMap &ValueMap,\n"; + OS << " " + "DenseMap &MBBMap,\n"; + OS << " " + "MachineBasicBlock *MBB);\n"; + // Declare the Subtarget member, which is used for predicate checks. OS << " const " << InstNS.substr(0, InstNS.size() - 2) << "Subtarget *Subtarget;\n"; -- cgit v1.2.3