LLVM 20.0.0git
|
#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 () |
#define GET_ASSEMBLER_HEADER |
Definition at line 78 of file LanaiAsmParser.cpp.
#define GET_MATCHER_IMPLEMENTATION |
Definition at line 1229 of file LanaiAsmParser.cpp.
#define GET_REGISTER_MATCHER |
Definition at line 1228 of file LanaiAsmParser.cpp.
Definition at line 816 of file LanaiAsmParser.cpp.
References llvm::LPAC::makePostOp(), and llvm::LPAC::makePreOp().
|
static |
Definition at line 1106 of file LanaiAsmParser.cpp.
References llvm::get(), llvm::MCConstantExpr::getValue(), isImm(), isReg(), llvm::LPAC::modifiesOp(), llvm::Offset, and Operands.
|
static |
Definition at line 1143 of file LanaiAsmParser.cpp.
Referenced by MaybePredicatedInst().
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLanaiAsmParser | ( | ) |
Definition at line 1232 of file LanaiAsmParser.cpp.
References llvm::getTheLanaiTarget().
|
static |
|
static |
Definition at line 1147 of file LanaiAsmParser.cpp.
References llvm::StringSwitch< T, R >::Default(), IsRegister(), Operands, and llvm::StringSwitch< T, R >::StartsWith().
Definition at line 861 of file LanaiAsmParser.cpp.
References llvm::MCSymbolRefExpr::getKind(), llvm::LanaiMCExpr::getKind(), llvm::MCConstantExpr::getValue(), and llvm::LanaiMCExpr::VK_Lanai_None.
|
static |
Definition at line 835 of file LanaiAsmParser.cpp.
References llvm::StringSwitch< T, R >::Default(), and llvm::StringSwitch< T, R >::EndsWith().