Reland "[clang-repl] Keep the first llvm::Module empty to avoid invalid memory access...
[llvm-project.git] / llvm / lib / Target / SystemZ / SystemZ.td
blobe18deede544a125fbb5ae3b5d8c1dfbc895ee32e
1 //===-- SystemZ.td - Describe the SystemZ target machine -----*- tblgen -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 //===----------------------------------------------------------------------===//
10 // Target-independent interfaces which we are implementing
11 //===----------------------------------------------------------------------===//
13 include "llvm/Target/Target.td"
15 //===----------------------------------------------------------------------===//
16 // SystemZ subtarget features
17 //===----------------------------------------------------------------------===//
19 include "SystemZFeatures.td"
21 //===----------------------------------------------------------------------===//
22 // SystemZ subtarget scheduling models
23 //===----------------------------------------------------------------------===//
25 include "SystemZSchedule.td"
27 //===----------------------------------------------------------------------===//
28 // SystemZ supported processors
29 //===----------------------------------------------------------------------===//
31 include "SystemZProcessors.td"
33 //===----------------------------------------------------------------------===//
34 // Register file description
35 //===----------------------------------------------------------------------===//
37 include "SystemZRegisterInfo.td"
39 //===----------------------------------------------------------------------===//
40 // Calling convention description
41 //===----------------------------------------------------------------------===//
43 include "SystemZCallingConv.td"
45 //===----------------------------------------------------------------------===//
46 // Instruction descriptions
47 //===----------------------------------------------------------------------===//
49 include "SystemZOperators.td"
50 include "SystemZOperands.td"
51 include "SystemZPatterns.td"
52 include "SystemZInstrFormats.td"
53 include "SystemZInstrInfo.td"
54 include "SystemZInstrVector.td"
55 include "SystemZInstrFP.td"
56 include "SystemZInstrHFP.td"
57 include "SystemZInstrDFP.td"
58 include "SystemZInstrSystem.td"
60 def SystemZInstrInfo : InstrInfo { let guessInstructionProperties = 0; }
62 //===----------------------------------------------------------------------===//
63 // Assembly parser
64 //===----------------------------------------------------------------------===//
66 def SystemZAsmParser : AsmParser {
67   let ShouldEmitMatchRegisterName = 0;
70 def ATTAsmParserVariant : AsmParserVariant {
71   int Variant = 0;
73   // Variant name.
74   string Name = "att";
77 def HLASMAsmParserVariant : AsmParserVariant {
78   int Variant = 1;
80   // Variant name.
81   string Name = "hlasm";
84 //===----------------------------------------------------------------------===//
85 // Top-level target declaration
86 //===----------------------------------------------------------------------===//
88 def SystemZ : Target {
89   let InstructionSet = SystemZInstrInfo;
90   let AssemblyParsers = [SystemZAsmParser];
91   let AssemblyParserVariants = [ATTAsmParserVariant, HLASMAsmParserVariant];
92   let AllowRegisterRenaming = 1;