LLVM  5.0.0
Public Member Functions | List of all members
llvm::AVRAsmParser Class Reference

Parses AVR assembly from a stream. More...

Inheritance diagram for llvm::AVRAsmParser:
[legend]
Collaboration diagram for llvm::AVRAsmParser:
[legend]

Public Member Functions

 AVRAsmParser (const MCSubtargetInfo &STI, MCAsmParser &Parser, const MCInstrInfo &MII, const MCTargetOptions &Options)
 
MCAsmParser & getParser () const
 
MCAsmLexer & getLexer () const
 
- Public Member Functions inherited from llvm::MCTargetAsmParser
 MCTargetAsmParser (const MCTargetAsmParser &)=delete
 
MCTargetAsmParser & operator= (const MCTargetAsmParser &)=delete
 
 ~MCTargetAsmParser () override
 
const MCSubtargetInfo & getSTI () const
 
uint64_t getAvailableFeatures () const
 
void setAvailableFeatures (uint64_t Value)
 
bool isParsingInlineAsm ()
 
void setParsingInlineAsm (bool Value)
 
MCTargetOptions getTargetOptions () const
 
void setSemaCallback (MCAsmParserSemaCallback *Callback)
 
virtual void SetFrameRegister (unsigned RegNo)
 Sets frame register corresponding to the current MachineFunction. More...
 
virtual bool ParseInstruction (ParseInstructionInfo &Info, StringRef Name, AsmToken Token, OperandVector &Operands)
 
virtual bool OmitRegisterFromClobberLists (unsigned RegNo)
 Allows targets to let registers opt out of clobber lists. More...
 
virtual unsigned checkEarlyTargetMatchPredicate (MCInst &Inst, const OperandVector &Operands)
 Validate the instruction match against any complex target predicates before rendering any operands to it. More...
 
virtual unsigned checkTargetMatchPredicate (MCInst &Inst)
 checkTargetMatchPredicate - Validate the instruction match against any complex target predicates not expressible via match classes. More...
 
virtual void convertToMapAndConstraints (unsigned Kind, const OperandVector &Operands)=0
 
virtual bool equalIsAsmAssignment ()
 
virtual bool isLabel (AsmToken &Token)
 
virtual const MCExpr * applyModifierToExpr (const MCExpr *E, MCSymbolRefExpr::VariantKind, MCContext &Ctx)
 
virtual void onLabelParsed (MCSymbol *Symbol)
 
virtual void flushPendingInstructions (MCStreamer &Out)
 Ensure that all previously parsed instructions have been emitted to the output streamer, if the target does not emit them immediately. More...
 
virtual const MCExpr * createTargetUnaryExpr (const MCExpr *E, AsmToken::TokenKind OperatorToken, MCContext &Ctx)
 
- Public Member Functions inherited from llvm::MCAsmParserExtension
 MCAsmParserExtension (const MCAsmParserExtension &)=delete
 
MCAsmParserExtension & operator= (const MCAsmParserExtension &)=delete
 
virtual ~MCAsmParserExtension ()
 
virtual void Initialize (MCAsmParser &Parser)
 Initialize the extension for parsing using the given Parser. More...
 
MCContext & getContext ()
 
MCAsmLexer & getLexer ()
 
const MCAsmLexer & getLexer () const
 
MCAsmParser & getParser ()
 
const MCAsmParser & getParser () const
 
SourceMgr & getSourceManager ()
 
MCStreamer & getStreamer ()
 
bool Warning (SMLoc L, const Twine &Msg)
 
bool Error (SMLoc L, const Twine &Msg, SMRange Range=SMRange())
 
void Note (SMLoc L, const Twine &Msg)
 
bool TokError (const Twine &Msg)
 
const AsmToken & Lex ()
 
const AsmToken & getTok ()
 
bool parseToken (AsmToken::TokenKind T, const Twine &Msg="unexpected token")
 
bool parseMany (function_ref< bool()> parseOne, bool hasComma=true)
 
bool parseOptionalToken (AsmToken::TokenKind T)
 
bool check (bool P, const Twine &Msg)
 
bool check (bool P, SMLoc Loc, const Twine &Msg)
 
bool addErrorSuffix (const Twine &Suffix)
 
bool HasBracketExpressions () const
 

Additional Inherited Members

- Public Types inherited from llvm::MCTargetAsmParser
enum  MatchResultTy {
  Match_InvalidOperand, Match_MissingFeature, Match_MnemonicFail, Match_Success,
  FIRST_TARGET_MATCH_RESULT_TY
}
 
- Protected Member Functions inherited from llvm::MCTargetAsmParser
 MCTargetAsmParser (MCTargetOptions const &, const MCSubtargetInfo &STI)
 
MCSubtargetInfo & copySTI ()
 Create a copy of STI and return a non-const reference to it. More...
 
- Protected Member Functions inherited from llvm::MCAsmParserExtension
 MCAsmParserExtension ()
 
- Static Protected Member Functions inherited from llvm::MCAsmParserExtension
template<typename T , bool(T::*)(StringRef, SMLoc) Handler>
static bool HandleDirective (MCAsmParserExtension *Target, StringRef Directive, SMLoc DirectiveLoc)
 
- Protected Attributes inherited from llvm::MCTargetAsmParser
uint64_t AvailableFeatures = 0
 AvailableFeatures - The current set of available features. More...
 
bool ParsingInlineAsm = false
 ParsingInlineAsm - Are we parsing ms-style inline assembly? More...
 
MCAsmParserSemaCallback * SemaCallback
 SemaCallback - The Sema callback implementation. More...
 
MCTargetOptions MCOptions
 Set of options which affects instrumentation of inline assembly. More...
 
const MCSubtargetInfo * STI
 Current STI. More...
 
- Protected Attributes inherited from llvm::MCAsmParserExtension
bool BracketExpressionsSupported = false
 

Detailed Description

Parses AVR assembly from a stream.

Definition at line 39 of file AVRAsmParser.cpp.

Constructor & Destructor Documentation

llvm::AVRAsmParser::AVRAsmParser ( const MCSubtargetInfo &  STI,
MCAsmParser &  Parser,
const MCInstrInfo &  MII,
const MCTargetOptions &  Options 
)
inline

Member Function Documentation

MCAsmLexer& llvm::AVRAsmParser::getLexer ( ) const
inline

Definition at line 94 of file AVRAsmParser.cpp.

References llvm::MCAsmParser::getLexer().

MCAsmParser& llvm::AVRAsmParser::getParser ( ) const
inline

Definition at line 93 of file AVRAsmParser.cpp.


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