mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 19:29:54 +00:00
be4aef480e
This is the second minimal patch keeping Nios2 target buildable. I'm adding subtarget here and other stuff for frame lowering, instruction, register information methods. I do not add any test cases, as still there are missing parts like DAG selector and assembly printing. I plan to include them into the next patch. Patch by Andrei Grischenko <andrei.l.grischenko@intel.com> Differential Revision: https://reviews.llvm.org/D37256 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313626 91177308-0d34-0410-b5e6-96231b3b80d8
40 lines
1.6 KiB
TableGen
40 lines
1.6 KiB
TableGen
//===-- Nios2.td - Describe the Nios2 Target Machine -------*- tablegen -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Calling Conv, Instruction Descriptions
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
include "llvm/Target/Target.td"
|
|
include "Nios2RegisterInfo.td"
|
|
include "Nios2InstrInfo.td"
|
|
include "Nios2Schedule.td"
|
|
|
|
def Nios2InstrInfo : InstrInfo;
|
|
|
|
def Nios2 : Target { let InstructionSet = Nios2InstrInfo; }
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Nios2 Subtarget features
|
|
//===----------------------------------------------------------------------===//
|
|
def FeatureNios2r1 : SubtargetFeature<"nios2r1", "Nios2ArchVersion",
|
|
"Nios2r1", "Nios2 R1 ISA Support">;
|
|
def FeatureNios2r2 : SubtargetFeature<"nios2r2", "Nios2ArchVersion",
|
|
"Nios2r2", "Nios2 R2 ISA Support">;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Nios2 processors supported.
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
class Proc<string Name, list<SubtargetFeature> Features>
|
|
: Processor<Name, Nios2GenericItineraries, Features>;
|
|
|
|
def : Proc<"nios2r1", [FeatureNios2r1]>;
|
|
def : Proc<"nios2r2", [FeatureNios2r2]>;
|