blob: 5747126a4d2809830a8dbe39e1f67f8dde06df0b [file] [log] [blame]
Anton Korobeynikov4403b932009-07-16 13:27:25 +00001//===- SystemZInstrInfo.cpp - SystemZ Instruction Information --------------===//
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// This file contains the SystemZ implementation of the TargetInstrInfo class.
11//
12//===----------------------------------------------------------------------===//
13
14#include "SystemZ.h"
15#include "SystemZInstrInfo.h"
16#include "SystemZMachineFunctionInfo.h"
17#include "SystemZTargetMachine.h"
18#include "SystemZGenInstrInfo.inc"
19#include "llvm/Function.h"
20#include "llvm/CodeGen/MachineFrameInfo.h"
21#include "llvm/CodeGen/MachineInstrBuilder.h"
22#include "llvm/CodeGen/MachineRegisterInfo.h"
23#include "llvm/CodeGen/PseudoSourceValue.h"
24
25using namespace llvm;
26
27SystemZInstrInfo::SystemZInstrInfo(SystemZTargetMachine &tm)
28 : TargetInstrInfoImpl(SystemZInsts, array_lengthof(SystemZInsts)),
29 RI(tm, *this), TM(tm) {}
30
31void SystemZInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
32 MachineBasicBlock::iterator MI,
33 unsigned SrcReg, bool isKill, int FrameIdx,
34 const TargetRegisterClass *RC) const {
35 assert(0 && "Cannot store this register to stack slot!");
36}
37
38void SystemZInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
39 MachineBasicBlock::iterator MI,
40 unsigned DestReg, int FrameIdx,
41 const TargetRegisterClass *RC) const{
42 assert(0 && "Cannot store this register to stack slot!");
43}
44
45bool SystemZInstrInfo::copyRegToReg(MachineBasicBlock &MBB,
46 MachineBasicBlock::iterator I,
47 unsigned DestReg, unsigned SrcReg,
48 const TargetRegisterClass *DestRC,
49 const TargetRegisterClass *SrcRC) const {
50 return false;
51}
52
53bool
54SystemZInstrInfo::isMoveInstr(const MachineInstr& MI,
55 unsigned &SrcReg, unsigned &DstReg,
56 unsigned &SrcSubIdx, unsigned &DstSubIdx) const {
57 return false;
58}
59
60bool
61SystemZInstrInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB,
62 MachineBasicBlock::iterator MI,
63 const std::vector<CalleeSavedInfo> &CSI) const {
64 return false;
65}
66
67bool
68SystemZInstrInfo::restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
69 MachineBasicBlock::iterator MI,
70 const std::vector<CalleeSavedInfo> &CSI) const {
71 return false;
72}
73
74unsigned
75SystemZInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
76 MachineBasicBlock *FBB,
77 const SmallVectorImpl<MachineOperand> &Cond) const {
78 assert(0 && "Implement branches!");
79
80 return 0;
81}