LLVM API Documentation

llvm::TargetAsmParser Class Reference

TargetAsmParser - Generic interface to target specific assembly parsers. More...

#include <TargetAsmParser.h>

Collaboration diagram for llvm::TargetAsmParser:
[legend]

List of all members.

Public Member Functions

virtual ~TargetAsmParser ()
const Target & getTarget () const
virtual bool ParseInstruction (const StringRef &Name, MCInst &Inst)=0

Protected Member Functions

 TargetAsmParser (const Target &)

Protected Attributes

const Target & TheTarget
 TheTarget - The Target that this machine was created for.


Detailed Description

TargetAsmParser - Generic interface to target specific assembly parsers.

Definition at line 20 of file TargetAsmParser.h.


Constructor & Destructor Documentation

TargetAsmParser::TargetAsmParser ( const Target &  T  )  [protected]

Definition at line 13 of file TargetAsmParser.cpp.

TargetAsmParser::~TargetAsmParser (  )  [virtual]

Definition at line 18 of file TargetAsmParser.cpp.


Member Function Documentation

const Target& llvm::TargetAsmParser::getTarget (  )  const [inline]

Definition at line 32 of file TargetAsmParser.h.

References TheTarget.

virtual bool llvm::TargetAsmParser::ParseInstruction ( const StringRef &  Name,
MCInst &  Inst 
) [pure virtual]

ParseInstruction - Parse one assembly instruction.

The parser is positioned following the instruction name. The target specific instruction parser should parse the entire instruction and construct the appropriate MCInst, or emit an error. On success, the entire line should be parsed up to and including the end-of-statement token. On failure, the parser is not required to read to the end of the line.

Parameters:
AP - The current parser object.
Name - The instruction name.
Inst [out] - On success, the parsed instruction.
Returns:
True on failure.


Member Data Documentation

TheTarget - The Target that this machine was created for.

Definition at line 27 of file TargetAsmParser.h.

Referenced by getTarget().


The documentation for this class was generated from the following files: