LLVM 20.0.0git
Macros | Functions
LanaiAsmParser.cpp File Reference
#include "LanaiAluCode.h"
#include "LanaiCondCode.h"
#include "LanaiInstrInfo.h"
#include "MCTargetDesc/LanaiMCExpr.h"
#include "TargetInfo/LanaiTargetInfo.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/MC/TargetRegistry.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <optional>
#include "LanaiGenAsmMatcher.inc"

Go to the source code of this file.

Macros

#define GET_ASSEMBLER_HEADER
 
#define GET_REGISTER_MATCHER
 
#define GET_MATCHER_IMPLEMENTATION
 

Functions

static MCRegister 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)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLanaiAsmParser ()
 

Macro Definition Documentation

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 78 of file LanaiAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 1229 of file LanaiAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 1228 of file LanaiAsmParser.cpp.

Function Documentation

◆ AluWithPrePost()

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

Definition at line 816 of file LanaiAsmParser.cpp.

References llvm::LPAC::makePostOp(), and llvm::LPAC::makePreOp().

◆ IsMemoryAssignmentError()

static bool IsMemoryAssignmentError ( const OperandVector Operands)
static

◆ IsRegister()

static bool IsRegister ( const MCParsedAsmOperand op)
static

Definition at line 1143 of file LanaiAsmParser.cpp.

References isReg(), and op.

Referenced by MaybePredicatedInst().

◆ LLVMInitializeLanaiAsmParser()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLanaiAsmParser ( )

Definition at line 1232 of file LanaiAsmParser.cpp.

References llvm::getTheLanaiTarget().

◆ MatchRegisterName()

static MCRegister 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