1 //===-- SPUHazardRecognizers.h - Cell SPU Hazard Recognizer -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines hazard recognizers for scheduling on the Cell SPU
13 //===----------------------------------------------------------------------===//
18 #include "llvm/CodeGen/ScheduleHazardRecognizer.h"
22 class TargetInstrInfo;
24 /// SPUHazardRecognizer
25 class SPUHazardRecognizer : public ScheduleHazardRecognizer
28 SPUHazardRecognizer(const TargetInstrInfo &/*TII*/) {}
29 virtual HazardType getHazardType(SUnit *SU, int Stalls);
30 virtual void EmitInstruction(SUnit *SU);
31 virtual void AdvanceCycle();
32 virtual void EmitNoop();
35 } // end namespace llvm