]>
git.proxmox.com Git - rustc.git/blob - src/llvm/lib/CodeGen/Spiller.h
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_LIB_CODEGEN_SPILLER_H
11 #define LLVM_LIB_CODEGEN_SPILLER_H
16 class MachineFunction
;
17 class MachineFunctionPass
;
20 /// Spiller interface.
22 /// Implementations are utility classes which insert spill or remat code on
25 virtual void anchor();
27 virtual ~Spiller() = 0;
29 /// spill - Spill the LRE.getParent() live interval.
30 virtual void spill(LiveRangeEdit
&LRE
) = 0;
34 /// Create and return a spiller that will insert spill code directly instead
35 /// of deferring though VirtRegMap.
36 Spiller
*createInlineSpiller(MachineFunctionPass
&pass
,