blob: f17a0b55a072340b4296df6719aad316bcf1a8f5 [file] [log] [blame]
Lang Hamese2b201b2009-05-18 19:03:16 +00001//===-- 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//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_CODEGEN_SPILLER_H
11#define LLVM_CODEGEN_SPILLER_H
12
13#include <vector>
14
15namespace llvm {
16
17 /// Spiller interface.
18 ///
19 /// Implementations are utility classes which insert spill or remat code on
20 /// demand.
21 class Spiller {
22 public:
23 virtual ~Spiller() = 0;
24 virtual std::vector<class LiveInterval*> spill(class LiveInterval *li) = 0;
25 };
26
27 /// Create and return a spiller object, as specified on the command line.
28 Spiller* createSpiller(class MachineFunction *mf, class LiveIntervals *li,
29 class VirtRegMap *vrm);
30}
31
32#endif