1 //===-- llvm/CodeGen/Spiller.h - Spiller -*- 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 #ifndef LLVM_CODEGEN_SPILLER_H
11 #define LLVM_CODEGEN_SPILLER_H
18 /// Spiller interface.
20 /// Implementations are utility classes which insert spill or remat code on
24 virtual ~Spiller() = 0;
25 virtual std::vector<LiveInterval*> spill(class LiveInterval *li) = 0;
28 /// Create and return a spiller object, as specified on the command line.
29 Spiller* createSpiller(class MachineFunction *mf, class LiveIntervals *li,
30 class VirtRegMap *vrm);