2004-07-16 06:29:19 +00:00
|
|
|
//===- SkeletonInstrInfo.td - Describe the Instruction Set ------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Skeleton instruction information. Fill in stuff here.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
class Format<bits<4> val> {
|
|
|
|
bits<4> Value = val;
|
|
|
|
}
|
|
|
|
|
2004-07-16 07:11:15 +00:00
|
|
|
// Some of the powerpc instruction formats, plus a pseudo-instruction format:
|
2004-07-16 06:29:19 +00:00
|
|
|
def Pseudo : Format<0>;
|
|
|
|
def IForm : Format<1>;
|
|
|
|
def BForm : Format<2>;
|
|
|
|
|
|
|
|
// Look at how other targets factor commonality between instructions.
|
2004-09-21 17:30:54 +00:00
|
|
|
class SkelInst<string nm, bits<6> opcd, dag ops, Format f> : Instruction {
|
2004-07-16 06:29:19 +00:00
|
|
|
let Namespace = "Skeleton";
|
|
|
|
|
|
|
|
let Name = nm;
|
2004-09-21 17:30:54 +00:00
|
|
|
let OperandList = ops;
|
2004-07-16 06:29:19 +00:00
|
|
|
bits<6> Opcode = opcd;
|
|
|
|
Format Form = f;
|
|
|
|
bits<4> FormBits = Form.Value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pseudo-instructions:
|
2004-09-21 17:30:54 +00:00
|
|
|
def NOP : SkelInst<"NOP", 0, (ops), Pseudo>; // No-op
|
|
|
|
def ADJCALLSTACKDOWN : SkelInst<"ADJCALLSTACKDOWN", 0, (ops), Pseudo>;
|
|
|
|
def ADJCALLSTACKUP : SkelInst<"ADJCALLSTACKUP", 0, (ops), Pseudo>;
|
2004-07-16 06:29:19 +00:00
|
|
|
|
|
|
|
|