2012-02-18 12:03:15 +00:00
|
|
|
//===-- MBlaze.td - Describe the MBlaze Target Machine -----*- tablegen -*-===//
|
2010-02-23 19:15:24 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// This is the top level entry point for the MBlaze target.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Target-independent interfaces
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "llvm/Target/Target.td"
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Register File, Calling Conv, Instruction Descriptions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "MBlazeRegisterInfo.td"
|
|
|
|
include "MBlazeSchedule.td"
|
|
|
|
include "MBlazeIntrinsics.td"
|
|
|
|
include "MBlazeInstrInfo.td"
|
|
|
|
include "MBlazeCallingConv.td"
|
|
|
|
|
2010-04-05 03:10:20 +00:00
|
|
|
def MBlazeInstrInfo : InstrInfo;
|
2010-02-23 19:15:24 +00:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Microblaze Subtarget features //
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def FeatureBarrel : SubtargetFeature<"barrel", "HasBarrel", "true",
|
2010-10-21 03:57:26 +00:00
|
|
|
"Implements barrel shifter">;
|
2010-02-23 19:15:24 +00:00
|
|
|
def FeatureDiv : SubtargetFeature<"div", "HasDiv", "true",
|
2010-10-21 03:57:26 +00:00
|
|
|
"Implements hardware divider">;
|
2010-02-23 19:15:24 +00:00
|
|
|
def FeatureMul : SubtargetFeature<"mul", "HasMul", "true",
|
2010-10-21 03:57:26 +00:00
|
|
|
"Implements hardware multiplier">;
|
2010-02-23 19:15:24 +00:00
|
|
|
def FeaturePatCmp : SubtargetFeature<"patcmp", "HasPatCmp", "true",
|
2010-10-21 03:57:26 +00:00
|
|
|
"Implements pattern compare instruction">;
|
2010-02-23 19:15:24 +00:00
|
|
|
def FeatureFPU : SubtargetFeature<"fpu", "HasFPU", "true",
|
2010-10-21 03:57:26 +00:00
|
|
|
"Implements floating point unit">;
|
2010-02-23 19:15:24 +00:00
|
|
|
def FeatureMul64 : SubtargetFeature<"mul64", "HasMul64", "true",
|
|
|
|
"Implements multiplier with 64-bit result">;
|
|
|
|
def FeatureSqrt : SubtargetFeature<"sqrt", "HasSqrt", "true",
|
2010-10-21 03:57:26 +00:00
|
|
|
"Implements sqrt and floating point convert">;
|
2010-02-23 19:15:24 +00:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// MBlaze processors supported.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2012-06-22 03:58:51 +00:00
|
|
|
def : Processor<"mblaze", NoItineraries, []>;
|
2011-04-11 22:31:52 +00:00
|
|
|
def : Processor<"mblaze3", MBlazePipe3Itineraries, []>;
|
|
|
|
def : Processor<"mblaze5", MBlazePipe5Itineraries, []>;
|
2010-02-23 19:15:24 +00:00
|
|
|
|
2010-10-21 03:57:26 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Instruction Descriptions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def MBlazeAsmWriter : AsmWriter {
|
|
|
|
string AsmWriterClassName = "InstPrinter";
|
|
|
|
bit isMCAsmWriter = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Target Declaration
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2010-02-23 19:15:24 +00:00
|
|
|
def MBlaze : Target {
|
|
|
|
let InstructionSet = MBlazeInstrInfo;
|
2010-10-21 03:57:26 +00:00
|
|
|
let AssemblyWriters = [MBlazeAsmWriter];
|
2010-02-23 19:15:24 +00:00
|
|
|
}
|