Fix think-o: emit all 8 bytes of the EOF marker. Also reflow a line in a
[llvm/stm8.git] / lib / CodeGen / VirtRegRewriter.h
blob93474e0d7ff73dab36e03d33c9457914a45c83a7
1 //===-- llvm/CodeGen/VirtRegRewriter.h - VirtRegRewriter -*- 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_VIRTREGREWRITER_H
11 #define LLVM_CODEGEN_VIRTREGREWRITER_H
13 namespace llvm {
14 class LiveIntervals;
15 class MachineFunction;
16 class VirtRegMap;
18 /// VirtRegRewriter interface: Implementations of this interface assign
19 /// spilled virtual registers to stack slots, rewriting the code.
20 struct VirtRegRewriter {
21 virtual ~VirtRegRewriter();
22 virtual bool runOnMachineFunction(MachineFunction &MF, VirtRegMap &VRM,
23 LiveIntervals* LIs) = 0;
26 /// createVirtRegRewriter - Create an return a rewriter object, as specified
27 /// on the command line.
28 VirtRegRewriter* createVirtRegRewriter();
32 #endif