LLVM: lib/MC/MCParser/MCTargetAsmParser.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
13
14using namespace llvm;
15
20
22
25 STI = &STICopy;
26
27
29 if (S.isObj() && S.getCurrentFragment())
31 return STICopy;
32}
33
37
40
41
43
44
45 if (getParser().hasPendingError())
47
48
49
50
51
52 if (!Res)
54 if (getTok().getLoc() != StartTokLoc)
57}
58
Target independent representation for an assembler token.
LLVM_ABI SMLoc getLoc() const
const AsmToken & getTok()
MCStreamer & getStreamer()
MCAsmParser & getParser()
LLVM_ABI MCSubtargetInfo & getSubtargetCopy(const MCSubtargetInfo &STI)
Interface to description of machine instruction set.
Streaming object file generation interface.
MCParsedAsmOperand - This abstract class represents a source-level assembly instruction operand.
virtual bool isReg() const =0
isReg - Is this a register operand?
virtual MCRegister getReg() const =0
Generic base class for all target subtargets.
virtual ParseStatus parseDirective(AsmToken DirectiveID)
Parses a target-specific assembler directive.
Definition MCTargetAsmParser.cpp:38
MCTargetOptions MCOptions
Set of options which affects instrumentation of inline assembly.
MCSubtargetInfo & copySTI()
Create a copy of STI and return a non-const reference to it.
Definition MCTargetAsmParser.cpp:23
virtual bool ParseDirective(AsmToken DirectiveID)
ParseDirective - Parse a target specific assembler directive This method is deprecated,...
MCTargetAsmParser(MCTargetOptions const &, const MCSubtargetInfo &STI, const MCInstrInfo &MII)
Definition MCTargetAsmParser.cpp:16
virtual bool areEqualRegs(const MCParsedAsmOperand &Op1, const MCParsedAsmOperand &Op2) const
Returns whether two operands are registers and are equal.
Definition MCTargetAsmParser.cpp:59
const MCSubtargetInfo & getSTI() const
Definition MCTargetAsmParser.cpp:34
~MCTargetAsmParser() override
const MCSubtargetInfo * STI
Current STI.
Ternary parse status returned by various parse* methods.
static constexpr StatusTy Failure
static constexpr StatusTy Success
static constexpr StatusTy NoMatch
Represents a location in source code.
This is an optimization pass for GlobalISel generic memory operations.