From 0e2771f4c4a6e1ffc664eb23487087f824340255 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 29 Jul 2009 00:02:19 +0000 Subject: Match X86 register names to number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77404 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/Target.td | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'include') diff --git a/include/llvm/Target/Target.td b/include/llvm/Target/Target.td index 94ae94a..bdb5abb 100644 --- a/include/llvm/Target/Target.td +++ b/include/llvm/Target/Target.td @@ -411,6 +411,27 @@ def COPY_TO_REGCLASS : Instruction { } //===----------------------------------------------------------------------===// +// AsmParser - This class can be implemented by targets that wish to implement +// .s file parsing. +// +// Subtargets can have multiple different assembly parsers (e.g. AT&T vs Intel +// syntax on X86 for example). +// +class AsmParser { + // AsmWriterClassName - This specifies the suffix to use for the asmwriter + // class. Generated AsmWriter classes are always prefixed with the target + // name. + string AsmParserClassName = "AsmParser"; + + // Variant - AsmParsers can be of multiple different variants. Variants are + // used to support targets that need to parser multiple formats for the + // assembly language. + int Variant = 0; +} +def DefaultAsmParser : AsmParser; + + +//===----------------------------------------------------------------------===// // AsmWriter - This class can be implemented by targets that need to customize // the format of the .s file writer. // @@ -445,6 +466,9 @@ class Target { // InstructionSet - Instruction set description for this target. InstrInfo InstructionSet; + // AssemblyParsers - The AsmParser instances available for this target. + list AssemblyParsers = [DefaultAsmParser]; + // AssemblyWriters - The AsmWriter instances available for this target. list AssemblyWriters = [DefaultAsmWriter]; } -- cgit v1.1