diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-29 00:02:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-29 00:02:19 +0000 |
commit | 0e2771f4c4a6e1ffc664eb23487087f824340255 (patch) | |
tree | a0909e6d1508b498f26d13ce72b842b8fed77780 /include | |
parent | 55e459aa7508fb7f7de89886060f5fb5526efa44 (diff) | |
download | external_llvm-0e2771f4c4a6e1ffc664eb23487087f824340255.zip external_llvm-0e2771f4c4a6e1ffc664eb23487087f824340255.tar.gz external_llvm-0e2771f4c4a6e1ffc664eb23487087f824340255.tar.bz2 |
Match X86 register names to number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/Target.td | 24 |
1 files changed, 24 insertions, 0 deletions
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<AsmParser> AssemblyParsers = [DefaultAsmParser]; + // AssemblyWriters - The AsmWriter instances available for this target. list<AsmWriter> AssemblyWriters = [DefaultAsmWriter]; } |