1 //===- Lanai.td - Describe the Lanai Target Machine --------*- tablegen -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
11 // Target-independent interfaces which we are implementing
12 //===----------------------------------------------------------------------===//
14 include "llvm/Target/Target.td"
16 //===----------------------------------------------------------------------===//
17 // Register File, Calling Conv, Instruction Descriptions
18 //===----------------------------------------------------------------------===//
20 include "LanaiSchedule.td"
21 include "LanaiRegisterInfo.td"
22 include "LanaiCallingConv.td"
23 include "LanaiInstrInfo.td"
25 def LanaiInstrInfo : InstrInfo;
27 //===----------------------------------------------------------------------===//
28 // Lanai processors supported.
29 //===----------------------------------------------------------------------===//
31 def : ProcessorModel<"generic", LanaiSchedModel, []>;
32 def : ProcessorModel<"v11", LanaiSchedModel, []>;
34 def LanaiInstPrinter : AsmWriter {
35 string AsmWriterClassName = "InstPrinter";
36 bit isMCAsmWriter = 1;
39 //===----------------------------------------------------------------------===//
40 // Declare the target which we are implementing
41 //===----------------------------------------------------------------------===//
44 // Pull in Instruction Info:
45 let InstructionSet = LanaiInstrInfo;
46 let AssemblyWriters = [LanaiInstPrinter];