mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
8cbee4ea5b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16466 91177308-0d34-0410-b5e6-96231b3b80d8
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
//===- 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;
|
|
}
|
|
|
|
// Some of the powerpc instruction formats, plus a pseudo-instruction format:
|
|
def Pseudo : Format<0>;
|
|
def IForm : Format<1>;
|
|
def BForm : Format<2>;
|
|
|
|
// Look at how other targets factor commonality between instructions.
|
|
class SkelInst<string nm, bits<6> opcd, dag ops, Format f> : Instruction {
|
|
let Namespace = "Skeleton";
|
|
|
|
let Name = nm;
|
|
let OperandList = ops;
|
|
bits<6> Opcode = opcd;
|
|
Format Form = f;
|
|
bits<4> FormBits = Form.Value;
|
|
}
|
|
|
|
// Pseudo-instructions:
|
|
def PHI : SkelInst<"PHI", 0, (ops), Pseudo>; // PHI node...
|
|
def NOP : SkelInst<"NOP", 0, (ops), Pseudo>; // No-op
|
|
def ADJCALLSTACKDOWN : SkelInst<"ADJCALLSTACKDOWN", 0, (ops), Pseudo>;
|
|
def ADJCALLSTACKUP : SkelInst<"ADJCALLSTACKUP", 0, (ops), Pseudo>;
|
|
|
|
|