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/ScheduleDAGSDNodes.h"
19 #include "SPUInstrInfo.h"
23 /// SPUHazardRecognizer
24 class SPUHazardRecognizer : public HazardRecognizer
27 const TargetInstrInfo &TII;
31 SPUHazardRecognizer(const TargetInstrInfo &TII);
32 virtual HazardType getHazardType(SDNode *Node);
33 virtual void EmitInstruction(SDNode *Node);
34 virtual void AdvanceCycle();
35 virtual void EmitNoop();
38 } // end namespace llvm