1 //===-- X86AsmParser.cpp - Parse X86 assembly to MCInst instructions ------===//
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 //===----------------------------------------------------------------------===//
11 #include "llvm/Target/TargetRegistry.h"
12 #include "llvm/Target/TargetAsmParser.h"
17 class X86ATTAsmParser : public TargetAsmParser {
19 explicit X86ATTAsmParser(const Target &);
24 X86ATTAsmParser::X86ATTAsmParser(const Target &T)
30 TargetAsmParser *createAsmParser(const Target &T) {
31 return new X86ATTAsmParser(T);
35 // Force static initialization.
36 extern "C" void LLVMInitializeX86AsmParser() {
37 TargetRegistry::RegisterAsmParser(TheX86_32Target, &createAsmParser);
38 TargetRegistry::RegisterAsmParser(TheX86_64Target, &createAsmParser);