LLVM  8.0.1
Macros | Functions | Variables
PPCAsmParser.cpp File Reference
#include "MCTargetDesc/PPCMCExpr.h"
#include "MCTargetDesc/PPCMCTargetDesc.h"
#include "PPCTargetStreamer.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include "PPCGenAsmMatcher.inc"
Include dependency graph for PPCAsmParser.cpp:

Go to the source code of this file.

Macros

#define GET_REGISTER_MATCHER
 
#define GET_MATCHER_IMPLEMENTATION
 
#define GET_MNEMONIC_SPELL_CHECKER
 
Auto-generated Match Functions

{

#define GET_ASSEMBLER_HEADER
 

Functions

static int64_t EvaluateCRExpr (const MCExpr *E)
 
static void addNegOperand (MCInst &Inst, MCOperand &Op, MCContext &Ctx)
 
static std::string PPCMnemonicSpellCheck (StringRef S, uint64_t FBS, unsigned VariantID=0)
 
void LLVMInitializePowerPCAsmParser ()
 Force static initialization. More...
 

Variables

 DEFINE_PPC_REGCLASSES
 

Macro Definition Documentation

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 138 of file PPCAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 1797 of file PPCAsmParser.cpp.

◆ GET_MNEMONIC_SPELL_CHECKER

#define GET_MNEMONIC_SPELL_CHECKER

Definition at line 1798 of file PPCAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 1796 of file PPCAsmParser.cpp.

Function Documentation

◆ addNegOperand()

static void addNegOperand ( MCInst Inst,
MCOperand Op,
MCContext Ctx 
)
static

Definition at line 691 of file PPCAsmParser.cpp.

References llvm::MCInst::addOperand(), assert(), B, llvm::MCExpr::Binary, llvm::AsmToken::Comma, llvm::MCExpr::Constant, Context, llvm::PPCMCExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCUnaryExpr::create(), llvm::MCBinaryExpr::create(), llvm::MCOperand::createExpr(), llvm::MCOperand::createImm(), llvm::MCUnaryExpr::createMinus(), llvm::MCBinaryExpr::createSub(), llvm::AsmToken::Dollar, llvm::AsmToken::Dot, E, llvm::PPCTargetStreamer::emitAbiVersion(), llvm::MCStreamer::EmitInstruction(), llvm::PPCTargetStreamer::emitLocalEntry(), llvm::PPCTargetStreamer::emitMachine(), llvm::AsmToken::EndOfStatement, llvm::StringRef::equals_lower(), llvm::Error, llvm::AsmToken::Exclaim, llvm::StringRef::find(), llvm::StringRef::getAsInteger(), llvm::AsmToken::getEndLoc(), llvm::MCOperand::getExpr(), llvm::SMLoc::getFromPointer(), llvm::AsmToken::getIdentifier(), llvm::MCOperand::getImm(), llvm::MCExpr::getKind(), llvm::MCSymbolRefExpr::getKind(), llvm::MCBinaryExpr::getLHS(), llvm::AsmToken::getLoc(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCUnaryExpr::getOpcode(), llvm::MCBinaryExpr::getOpcode(), llvm::MCInst::getOperand(), llvm::SMLoc::getPointer(), llvm::MCBinaryExpr::getRHS(), llvm::AsmToken::getString(), llvm::MCUnaryExpr::getSubExpr(), llvm::MCSymbolRefExpr::getSymbol(), llvm::MCAsmParser::getTok(), llvm::getToken(), llvm::AsmToken::Identifier, Info, llvm::AsmToken::Integer, llvm::tgtok::IntVal, isDarwin(), llvm::MCOperand::isImm(), llvm::isIntN(), llvm::AsmToken::isNot(), llvm::isRunOfOnes(), llvm::isUIntN(), llvm::MCAsmParser::Lex(), LLVM_FALLTHROUGH, llvm_unreachable, llvm::AsmToken::LParen, MatchRegisterName(), llvm::AsmToken::Minus, llvm::MCUnaryExpr::Minus, N, Name, llvm::AArch64CC::NE, llvm::StringRef::npos, llvm::AsmToken::Percent, llvm::AsmToken::Plus, PPCMnemonicSpellCheck(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::Ref, llvm::AsmToken::RParen, llvm::MCInst::setLoc(), llvm::MCInst::setOpcode(), Size, llvm::SmallVectorBase::size(), llvm::StringRef::slice(), llvm::StringRef::startswith_lower(), llvm::AsmToken::String, llvm::MCBinaryExpr::Sub, llvm::StringRef::substr(), std::swap(), llvm::MCExpr::SymbolRef, llvm::MCExpr::Target, llvm::AsmToken::Tilde, llvm::MCExpr::Unary, llvm::MCSymbolRefExpr::VK_None, llvm::PPCMCExpr::VK_PPC_HA, llvm::MCSymbolRefExpr::VK_PPC_HA, llvm::PPCMCExpr::VK_PPC_HI, llvm::MCSymbolRefExpr::VK_PPC_HI, llvm::PPCMCExpr::VK_PPC_HIGH, llvm::MCSymbolRefExpr::VK_PPC_HIGH, llvm::PPCMCExpr::VK_PPC_HIGHA, llvm::MCSymbolRefExpr::VK_PPC_HIGHA, llvm::PPCMCExpr::VK_PPC_HIGHER, llvm::MCSymbolRefExpr::VK_PPC_HIGHER, llvm::PPCMCExpr::VK_PPC_HIGHERA, llvm::MCSymbolRefExpr::VK_PPC_HIGHERA, llvm::PPCMCExpr::VK_PPC_HIGHEST, llvm::MCSymbolRefExpr::VK_PPC_HIGHEST, llvm::PPCMCExpr::VK_PPC_HIGHESTA, llvm::MCSymbolRefExpr::VK_PPC_HIGHESTA, llvm::PPCMCExpr::VK_PPC_LO, llvm::MCSymbolRefExpr::VK_PPC_LO, llvm::PPCMCExpr::VK_PPC_None, llvm::MCSymbolRefExpr::VK_PPC_TLSGD, llvm::MCSymbolRefExpr::VK_PPC_TLSLD, llvm::MCSymbolRefExpr::VK_TLSGD, and llvm::MCSymbolRefExpr::VK_TLSLD.

◆ EvaluateCRExpr()

static int64_t EvaluateCRExpr ( const MCExpr E)
static

◆ LLVMInitializePowerPCAsmParser()

void LLVMInitializePowerPCAsmParser ( )

Force static initialization.

Definition at line 1790 of file PPCAsmParser.cpp.

References A, B, C, llvm::getThePPC32Target(), llvm::getThePPC64LETarget(), and llvm::getThePPC64Target().

◆ PPCMnemonicSpellCheck()

static std::string PPCMnemonicSpellCheck ( StringRef  S,
uint64_t  FBS,
unsigned  VariantID = 0 
)
static

Referenced by addNegOperand().

Variable Documentation

◆ DEFINE_PPC_REGCLASSES

DEFINE_PPC_REGCLASSES

Definition at line 33 of file PPCAsmParser.cpp.