1 //===- SparcV8InstrInfo.cpp - SparcV8 Instruction Information ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the SparcV8 implementation of the TargetInstrInfo class.
12 //===----------------------------------------------------------------------===//
14 #include "SparcV8InstrInfo.h"
15 #include "llvm/CodeGen/MachineInstrBuilder.h"
16 #include "SparcV8GenInstrInfo.inc"
20 SparcV8InstrInfo::SparcV8InstrInfo()
21 : TargetInstrInfo(SparcV8Insts,
22 sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0]), 0) {
25 // createNOPinstr - returns the target's implementation of NOP, which is
26 // usually a pseudo-instruction, implemented by a degenerate version of
27 // another instruction.
29 MachineInstr* SparcV8InstrInfo::createNOPinstr() const {
33 /// isNOPinstr - not having a special NOP opcode, we need to know if a given
34 /// instruction is interpreted as an `official' NOP instr, i.e., there may be
35 /// more than one way to `do nothing' but only one canonical way to slack off.
37 bool SparcV8InstrInfo::isNOPinstr(const MachineInstr &MI) const {
41 } // end namespace llvm