mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
8a2cb11b05
llvm-svn: 44597
61 lines
2.0 KiB
TableGen
61 lines
2.0 KiB
TableGen
//===- SPU.td - Describe the STI Cell SPU Target Machine ----*- tablegen -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by a team from the Computer Systems Research
|
|
// Department at The Aerospace Corporation and is distributed under the
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This is the top level entry point for the STI Cell SPU target machine.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Get the target-independent interfaces which we are implementing.
|
|
//
|
|
include "../Target.td"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Register File Description
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
include "SPURegisterInfo.td"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Instruction formats, instructions
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
include "SPUNodes.td"
|
|
include "SPUOperands.td"
|
|
include "SPUSchedule.td"
|
|
include "SPUInstrFormats.td"
|
|
include "SPUInstrInfo.td"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Subtarget features:
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def DefaultProc: SubtargetFeature<"", "ProcDirective", "SPU::DEFAULT_PROC", "">;
|
|
def LargeMemFeature:
|
|
SubtargetFeature<"large_mem","UseLargeMem", "true",
|
|
"Use large (>256) LSA memory addressing [default = false]">;
|
|
|
|
def SPURev0 : Processor<"v0", SPUItineraries, [DefaultProc]>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Calling convention:
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
include "SPUCallingConv.td"
|
|
|
|
// Target:
|
|
|
|
def SPUInstrInfo : InstrInfo {
|
|
let isLittleEndianEncoding = 1;
|
|
}
|
|
|
|
def SPU : Target {
|
|
let InstructionSet = SPUInstrInfo;
|
|
}
|