forked from sabottenda/llvm-sample-target
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleRegisterInfo.h
52 lines (38 loc) · 1.57 KB
/
SampleRegisterInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//===-- SampleRegisterInfo.h - Sample Register Information Impl -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the Sample implementation of the TargetRegisterInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef SAMPLEREGISTERINFO_H
#define SAMPLEREGISTERINFO_H
#include "Sample.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#define GET_REGINFO_HEADER
#include "SampleGenRegisterInfo.inc"
namespace llvm {
class TargetInstrInfo;
class Type;
struct SampleRegisterInfo : public SampleGenRegisterInfo {
const TargetInstrInfo &TII;
SampleRegisterInfo(const TargetInstrInfo &tii);
/// Code Generation virtual methods...
const MCPhysReg *getCalleeSavedRegs(const MachineFunction* MF = 0) const override;
const uint32_t *getCallPreservedMask(const MachineFunction &MF,
CallingConv::ID) const override;
BitVector getReservedRegs(const MachineFunction &MF) const override;
/// Stack Frame Processing Methods
void eliminateFrameIndex(MachineBasicBlock::iterator II,
int SPAdj, unsigned FIOperandNum,
RegScavenger *RS = NULL) const override;
/// Debug information queries.
Register getFrameRegister(const MachineFunction &MF) const override;
};
} // end namespace llvm
#endif