LLVM 22.0.0git
LanaiAsmParser.cpp File Reference
#include "LanaiAluCode.h"
#include "LanaiCondCode.h"
#include "LanaiInstrInfo.h"
#include "MCTargetDesc/LanaiMCAsmInfo.h"
#include "TargetInfo/LanaiTargetInfo.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/AsmLexer.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/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/raw_ostream.h"
#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_ABI LLVM_EXTERNAL_VISIBILITY 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 1227 of file LanaiAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 1226 of file LanaiAsmParser.cpp.

Function Documentation

◆ AluWithPrePost()

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

Definition at line 814 of file LanaiAsmParser.cpp.

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

◆ IsMemoryAssignmentError()

bool IsMemoryAssignmentError ( const OperandVector & Operands)
static

◆ IsRegister()

bool IsRegister ( const MCParsedAsmOperand & op)
static

Definition at line 1141 of file LanaiAsmParser.cpp.

References isReg(), and op.

Referenced by MaybePredicatedInst().

◆ LLVMInitializeLanaiAsmParser()

LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLanaiAsmParser ( )

Definition at line 1231 of file LanaiAsmParser.cpp.

References llvm::getTheLanaiTarget().

◆ MatchRegisterName()

MCRegister MatchRegisterName ( StringRef Name)
static

References Info, Operands, and Reg.

◆ MaybePredicatedInst()

◆ shouldBeSls()

◆ SizeForSuffix()

int SizeForSuffix ( StringRef T)
static