blob: a64dfbf88d4f2e98617f30132b5d586ac96701e0 [file] [log] [blame]
Brian Gaekee785e532004-02-25 19:28:19 +00001//===- SparcV8InstrInfo.cpp - SparcV8 Instruction Information ---*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
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.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the SparcV8 implementation of the TargetInstrInfo class.
11//
12//===----------------------------------------------------------------------===//
13
14#include "SparcV8InstrInfo.h"
15#include "llvm/CodeGen/MachineInstrBuilder.h"
16#include "SparcV8GenInstrInfo.inc"
17
18namespace llvm {
19
20SparcV8InstrInfo::SparcV8InstrInfo()
21 : TargetInstrInfo(SparcV8Insts,
22 sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0]), 0) {
23}
24
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.
28//
29MachineInstr* SparcV8InstrInfo::createNOPinstr() const {
30 return 0;
31}
32
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.
36//
37bool SparcV8InstrInfo::isNOPinstr(const MachineInstr &MI) const {
38 return false;
39}
40
41} // end namespace llvm
42