forked from Hoernchen/Epiphany
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Epiphany.td
69 lines (53 loc) · 2.4 KB
/
Epiphany.td
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//===- Epiphany.td - Describe the Epiphany Target Machine -------*- tblgen -*-==//
//
// 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 Epiphany target.
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
// Target-independent interfaces
//===----------------------------------------------------------------------===//
include "llvm/Target/Target.td"
//===----------------------------------------------------------------------===//
// Epiphany Processors
//===----------------------------------------------------------------------===//
include "EpiphanySchedule.td"
/*def : Processor<"E16", EpiphanyGenericItineraries, []>;*/
def CPU_E16: ProcessorModel<"E16", EpiphanyModel, []>;
//===----------------------------------------------------------------------===//
// Register File Description
//===----------------------------------------------------------------------===//
include "EpiphanyRegisterInfo.td"
include "EpiphanyCallingConv.td"
//===----------------------------------------------------------------------===//
// Instruction Descriptions
//===----------------------------------------------------------------------===//
include "EpiphanyInstrInfo.td"
def EpiphanyInstrInfo : InstrInfo;
//===----------------------------------------------------------------------===//
// Asm parser
//===----------------------------------------------------------------------===//
def EpiphanyAsmParser : AsmParser {
let ShouldEmitMatchRegisterName = 1;
}
def EpiphanyAsmParserVariant : AsmParserVariant {
int Variant = 0;
// Recognize hard coded registers
string RegisterPrefix = "r";
}
//===----------------------------------------------------------------------===//
// Declare the target which we are implementing
//===----------------------------------------------------------------------===//
// Will generate EpiphanyGenAsmWrite.inc included by EpiphanyInstPrinter.cpp, contents
// as follows,
def Epiphany : Target {
let InstructionSet = EpiphanyInstrInfo;
let AssemblyParsers = [EpiphanyAsmParser];
let AssemblyParserVariants = [EpiphanyAsmParserVariant];
}