1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Add default implementation of printing interface

llvm-svn: 4727
This commit is contained in:
Chris Lattner 2002-11-17 22:53:03 +00:00
parent b51a2857f2
commit a55e8dba9b

View File

@ -1,11 +1,10 @@
//===-- TargetMachine.cpp - General Target Information ---------------------==//
//===-- MachineInstrInfo.cpp - Target Instruction Information -------------===//
//
// This file describes the general parts of a Target machine.
// This file also implements MachineInstrInfo and MachineCacheInfo.
//
//===----------------------------------------------------------------------===//
#include "llvm/Target/MachineInstrInfo.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Constant.h"
#include "llvm/DerivedTypes.h"
@ -34,6 +33,9 @@ MachineInstrInfo::~MachineInstrInfo() {
TargetInstrDescriptors = NULL; // reset global variable
}
void MachineInstrInfo::print(const MachineInstr *MI, std::ostream &O) const {
O << *MI;
}
bool MachineInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
int64_t intValue) const {