2012-02-18 13:03:15 +01:00
|
|
|
//===-- SPU.td - Describe the STI Cell SPU Target Machine --*- tablegen -*-===//
|
|
|
|
//
|
2007-12-04 00:14:43 +01:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 21:36:04 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-12-04 00:14:43 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This is the top level entry point for the STI Cell SPU target machine.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// Get the target-independent interfaces which we are implementing.
|
|
|
|
//
|
2008-11-24 08:34:46 +01:00
|
|
|
include "llvm/Target/Target.td"
|
2007-12-04 00:14:43 +01:00
|
|
|
|
2008-12-31 00:28:25 +01:00
|
|
|
// Holder of code fragments (you'd think this'd already be in
|
|
|
|
// a td file somewhere... :-)
|
|
|
|
|
|
|
|
class CodeFrag<dag frag> {
|
|
|
|
dag Fragment = frag;
|
|
|
|
}
|
|
|
|
|
2007-12-04 00:14:43 +01:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// 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;
|
|
|
|
}
|