LLVM 22.0.0git
M68kAsmParser.cpp File Reference
#include "M68kInstrInfo.h"
#include "M68kRegisterInfo.h"
#include "MCTargetDesc/M68kMCAsmInfo.h"
#include "TargetInfo/M68kTargetInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCParser/AsmLexer.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/TargetRegistry.h"
#include <sstream>
#include "M68kGenAsmMatcher.inc"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "m68k-asm-parser"
#define GET_ASSEMBLER_HEADER
#define GET_REGISTER_MATCHER
#define GET_MATCHER_IMPLEMENTATION

Functions

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kAsmParser ()
static unsigned getRegisterByIndex (unsigned RegisterIndex)
static unsigned getRegisterIndex (unsigned Register)
static bool checkRegisterClass (unsigned RegNo, bool Data, bool Address, bool SP, bool FPDR=false, bool FPCR=false)

Variables

static cl::opt< boolRegisterPrefixOptional ("m68k-register-prefix-optional", cl::Hidden, cl::desc("Enable specifying registers without the % prefix"), cl::init(false))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "m68k-asm-parser"

Definition at line 23 of file M68kAsmParser.cpp.

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 39 of file M68kAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 232 of file M68kAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 231 of file M68kAsmParser.cpp.

Function Documentation

◆ checkRegisterClass()

bool checkRegisterClass ( unsigned RegNo,
bool Data,
bool Address,
bool SP,
bool FPDR = false,
bool FPCR = false )
inlinestatic

Definition at line 497 of file M68kAsmParser.cpp.

References llvm::Data, and llvm_unreachable.

◆ getRegisterByIndex()

unsigned getRegisterByIndex ( unsigned RegisterIndex)
inlinestatic

Definition at line 235 of file M68kAsmParser.cpp.

References assert().

◆ getRegisterIndex()

unsigned getRegisterIndex ( unsigned Register)
inlinestatic

Definition at line 246 of file M68kAsmParser.cpp.

References llvm_unreachable.

◆ LLVMInitializeM68kAsmParser()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kAsmParser ( )

Definition at line 227 of file M68kAsmParser.cpp.

References llvm::getTheM68kTarget(), LLVM_EXTERNAL_VISIBILITY, and X.

Variable Documentation

◆ RegisterPrefixOptional

cl::opt< bool > RegisterPrefixOptional("m68k-register-prefix-optional", cl::Hidden, cl::desc("Enable specifying registers without the % prefix"), cl::init(false)) ( "m68k-register-prefix-optional" ,
cl::Hidden ,
cl::desc("Enable specifying registers without the % prefix") ,
cl::init(false)  )
static