]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - lib/Target/ARM/ARMHazardRecognizer.h
Debug info: Remove ARMAsmPrinter::EmitDwarfRegOp(). AsmPrinter can now
[opencl/llvm.git] / lib / Target / ARM / ARMHazardRecognizer.h
1 //===-- ARMHazardRecognizer.h - ARM Hazard Recognizers ----------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines hazard recognizers for scheduling ARM functions.
11 //
12 //===----------------------------------------------------------------------===//
14 #ifndef ARMHAZARDRECOGNIZER_H
15 #define ARMHAZARDRECOGNIZER_H
17 #include "llvm/CodeGen/ScoreboardHazardRecognizer.h"
19 namespace llvm {
21 class ARMBaseInstrInfo;
22 class ARMBaseRegisterInfo;
23 class ARMSubtarget;
24 class MachineInstr;
26 /// ARMHazardRecognizer handles special constraints that are not expressed in
27 /// the scheduling itinerary. This is only used during postRA scheduling. The
28 /// ARM preRA scheduler uses an unspecialized instance of the
29 /// ScoreboardHazardRecognizer.
30 class ARMHazardRecognizer : public ScoreboardHazardRecognizer {
31   MachineInstr *LastMI;
32   unsigned FpMLxStalls;
34 public:
35   ARMHazardRecognizer(const InstrItineraryData *ItinData,
36                       const ScheduleDAG *DAG)
37     : ScoreboardHazardRecognizer(ItinData, DAG, "post-RA-sched"),
38       LastMI(0) {}
40   virtual HazardType getHazardType(SUnit *SU, int Stalls);
41   virtual void Reset();
42   virtual void EmitInstruction(SUnit *SU);
43   virtual void AdvanceCycle();
44   virtual void RecedeCycle();
45 };
47 } // end namespace llvm
49 #endif // ARMHAZARDRECOGNIZER_H