Don't analyze block if it's not considered for ifcvt anymore.
[llvm/stm8.git] / lib / CodeGen / Spiller.h
blob41f1727da43921b102c79ea94b91508f785425e8
1 //===-- llvm/CodeGen/Spiller.h - Spiller -*- 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 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CODEGEN_SPILLER_H
11 #define LLVM_CODEGEN_SPILLER_H
13 namespace llvm {
15 class LiveRangeEdit;
16 class MachineFunction;
17 class MachineFunctionPass;
18 class VirtRegMap;
20 /// Spiller interface.
21 ///
22 /// Implementations are utility classes which insert spill or remat code on
23 /// demand.
24 class Spiller {
25 public:
26 virtual ~Spiller() = 0;
28 /// spill - Spill the LRE.getParent() live interval.
29 virtual void spill(LiveRangeEdit &LRE) = 0;
33 /// Create and return a spiller object, as specified on the command line.
34 Spiller* createSpiller(MachineFunctionPass &pass,
35 MachineFunction &mf,
36 VirtRegMap &vrm);
38 /// Create and return a spiller that will insert spill code directly instead
39 /// of deferring though VirtRegMap.
40 Spiller *createInlineSpiller(MachineFunctionPass &pass,
41 MachineFunction &mf,
42 VirtRegMap &vrm);
46 #endif