blob: 15809f208b2ed0c69d572c5e196fc0f41ca43788 [file] [log] [blame]
Scott Michela589a082007-12-03 23:14:43 +00001//===- SPU.td - Describe the STI Cell SPU Target Machine ----*- tablegen -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Scott Michela589a082007-12-03 23:14:43 +00007//
Scott Michela589a082007-12-03 23:14:43 +00008//===----------------------------------------------------------------------===//
9//
10// This is the top level entry point for the STI Cell SPU target machine.
11//
12//===----------------------------------------------------------------------===//
13
14// Get the target-independent interfaces which we are implementing.
15//
16include "../Target.td"
17
18//===----------------------------------------------------------------------===//
19// Register File Description
20//===----------------------------------------------------------------------===//
21
22include "SPURegisterInfo.td"
23
24//===----------------------------------------------------------------------===//
25// Instruction formats, instructions
26//===----------------------------------------------------------------------===//
27
28include "SPUNodes.td"
29include "SPUOperands.td"
30include "SPUSchedule.td"
31include "SPUInstrFormats.td"
32include "SPUInstrInfo.td"
33
34//===----------------------------------------------------------------------===//
35// Subtarget features:
36//===----------------------------------------------------------------------===//
37
38def DefaultProc: SubtargetFeature<"", "ProcDirective", "SPU::DEFAULT_PROC", "">;
39def LargeMemFeature:
40 SubtargetFeature<"large_mem","UseLargeMem", "true",
41 "Use large (>256) LSA memory addressing [default = false]">;
42
43def SPURev0 : Processor<"v0", SPUItineraries, [DefaultProc]>;
44
45//===----------------------------------------------------------------------===//
46// Calling convention:
47//===----------------------------------------------------------------------===//
48
49include "SPUCallingConv.td"
50
51// Target:
52
53def SPUInstrInfo : InstrInfo {
54 let isLittleEndianEncoding = 1;
55}
56
57def SPU : Target {
58 let InstructionSet = SPUInstrInfo;
59}