2005-02-05 02:24:26 +00:00
|
|
|
//===- Alpha.td - Describe the Alpha Target Machine --------*- tablegen -*-===//
|
2005-01-22 23:41:55 +00:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// Get the target-independent interfaces which we are implementing...
|
|
|
|
//
|
|
|
|
include "../Target.td"
|
|
|
|
|
|
|
|
//Alpha is little endian
|
|
|
|
|
2005-10-23 22:08:45 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Subtarget Features
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2006-01-27 08:09:42 +00:00
|
|
|
def FeatureCIX : SubtargetFeature<"CIX", "HasCT", "true",
|
2005-10-26 17:28:23 +00:00
|
|
|
"Enable CIX extentions">;
|
2006-01-27 08:09:42 +00:00
|
|
|
def FeatureFIX : SubtargetFeature<"FIX", "HasF2I", "true",
|
2005-10-26 17:28:23 +00:00
|
|
|
"Enable FIX extentions">;
|
2005-10-23 22:08:45 +00:00
|
|
|
|
2005-01-22 23:41:55 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Register File Description
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "AlphaRegisterInfo.td"
|
|
|
|
|
2006-03-09 17:16:45 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Schedule Description
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "AlphaSchedule.td"
|
|
|
|
|
2005-01-22 23:41:55 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Instruction Descriptions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "AlphaInstrInfo.td"
|
|
|
|
|
|
|
|
def AlphaInstrInfo : InstrInfo {
|
|
|
|
// Define how we want to layout our target-specific information field.
|
|
|
|
// let TSFlagsFields = [];
|
|
|
|
// let TSFlagsShifts = [];
|
|
|
|
}
|
|
|
|
|
2005-10-23 22:08:45 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Alpha Processor Definitions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2006-03-09 17:16:45 +00:00
|
|
|
def : Processor<"generic", Alpha21264Itineraries, []>;
|
|
|
|
def : Processor<"pca56" , Alpha21264Itineraries, []>;
|
|
|
|
def : Processor<"ev56" , Alpha21264Itineraries, []>;
|
|
|
|
def : Processor<"ev6" , Alpha21264Itineraries, [FeatureFIX]>;
|
|
|
|
def : Processor<"ev67" , Alpha21264Itineraries, [FeatureFIX, FeatureCIX]>;
|
2005-10-23 22:08:45 +00:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// The Alpha Target
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
2005-01-22 23:41:55 +00:00
|
|
|
def Alpha : Target {
|
|
|
|
// Pointers on Alpha are 64-bits in size.
|
|
|
|
let PointerType = i64;
|
|
|
|
|
|
|
|
let CalleeSavedRegisters =
|
|
|
|
//saved regs
|
|
|
|
[R9, R10, R11, R12, R13, R14,
|
|
|
|
//Frame pointer
|
2005-04-05 20:51:46 +00:00
|
|
|
// R15,
|
2005-01-22 23:41:55 +00:00
|
|
|
//return address
|
2005-06-23 23:42:05 +00:00
|
|
|
// R26,
|
2005-01-22 23:41:55 +00:00
|
|
|
//Stack Pointer
|
2005-04-05 20:51:46 +00:00
|
|
|
// R30,
|
2005-01-22 23:41:55 +00:00
|
|
|
F2, F3, F4, F5, F6, F7, F8, F9];
|
|
|
|
|
|
|
|
// Pull in Instruction Info:
|
|
|
|
let InstructionSet = AlphaInstrInfo;
|
|
|
|
}
|