2013-02-05 21:24:56 +08:00
|
|
|
//===- AArch64.td - Describe the AArch64 Target Machine -------*- tblgen -*-==//
|
2013-01-31 20:12:40 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2013-02-15 00:17:01 +08:00
|
|
|
//
|
2013-01-31 20:12:40 +08:00
|
|
|
// This is the top level entry point for the AArch64 target.
|
2013-02-15 00:17:01 +08:00
|
|
|
//
|
2013-01-31 20:12:40 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Target-independent interfaces
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "llvm/Target/Target.td"
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// AArch64 Subtarget features.
|
|
|
|
//
|
|
|
|
|
|
|
|
def FeatureNEON : SubtargetFeature<"neon", "HasNEON", "true",
|
|
|
|
"Enable Advanced SIMD instructions">;
|
|
|
|
|
|
|
|
def FeatureCrypto : SubtargetFeature<"crypto", "HasCrypto", "true",
|
|
|
|
"Enable cryptographic instructions">;
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// AArch64 Processors
|
|
|
|
//
|
|
|
|
|
|
|
|
include "AArch64Schedule.td"
|
|
|
|
|
|
|
|
def : Processor<"generic", GenericItineraries, [FeatureNEON, FeatureCrypto]>;
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Register File Description
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "AArch64RegisterInfo.td"
|
|
|
|
|
|
|
|
include "AArch64CallingConv.td"
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Instruction Descriptions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "AArch64InstrInfo.td"
|
|
|
|
|
|
|
|
def AArch64InstrInfo : InstrInfo;
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Assembly printer
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def A64InstPrinter : AsmWriter {
|
|
|
|
string AsmWriterClassName = "InstPrinter";
|
|
|
|
bit isMCAsmWriter = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Declare the target which we are implementing
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def AArch64 : Target {
|
|
|
|
let InstructionSet = AArch64InstrInfo;
|
|
|
|
let AssemblyWriters = [A64InstPrinter];
|
|
|
|
}
|