LLVM  6.0.0svn
Macros | Functions
LanaiAsmParser.cpp File Reference
#include "Lanai.h"
#include "LanaiAluCode.h"
#include "LanaiCondCode.h"
#include "MCTargetDesc/LanaiMCExpr.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.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/MCSymbol.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <memory>
#include "LanaiGenAsmMatcher.inc"
Include dependency graph for LanaiAsmParser.cpp:

Go to the source code of this file.

Macros

#define GET_ASSEMBLER_HEADER
 
#define GET_REGISTER_MATCHER
 
#define GET_MATCHER_IMPLEMENTATION
 

Functions

static unsigned MatchRegisterName (StringRef Name)
 
static unsigned AluWithPrePost (unsigned AluCode, bool PreOp, bool PostOp)
 
static int SizeForSuffix (StringRef T)
 
bool shouldBeSls (const LanaiOperand &Op)
 
static bool IsMemoryAssignmentError (const OperandVector &Operands)
 
static bool IsRegister (const MCParsedAsmOperand &op)
 
static bool MaybePredicatedInst (const OperandVector &Operands)
 
void LLVMInitializeLanaiAsmParser ()
 

Macro Definition Documentation

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 77 of file LanaiAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 1223 of file LanaiAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 1222 of file LanaiAsmParser.cpp.

Function Documentation

◆ AluWithPrePost()

static unsigned AluWithPrePost ( unsigned  AluCode,
bool  PreOp,
bool  PostOp 
)
static

◆ IsMemoryAssignmentError()

static bool IsMemoryAssignmentError ( const OperandVector Operands)
static

◆ IsRegister()

static bool IsRegister ( const MCParsedAsmOperand op)
static

Definition at line 1137 of file LanaiAsmParser.cpp.

References isReg(), and op.

Referenced by MaybePredicatedInst().

◆ LLVMInitializeLanaiAsmParser()

void LLVMInitializeLanaiAsmParser ( )

Definition at line 1226 of file LanaiAsmParser.cpp.

References llvm::getTheLanaiTarget().

◆ MatchRegisterName()

static unsigned MatchRegisterName ( StringRef  Name)
static

◆ MaybePredicatedInst()

static bool MaybePredicatedInst ( const OperandVector Operands)
static

◆ shouldBeSls()

bool shouldBeSls ( const LanaiOperand &  Op)

◆ SizeForSuffix()

static int SizeForSuffix ( StringRef  T)
static