LLVM 19.0.0git
Macros | Functions | Variables
M68kAsmParser.cpp File Reference
#include "M68kInstrInfo.h"
#include "M68kRegisterInfo.h"
#include "TargetInfo/M68kTargetInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCParser/MCAsmLexer.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 22 of file M68kAsmParser.cpp.

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 38 of file M68kAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 231 of file M68kAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 230 of file M68kAsmParser.cpp.

Function Documentation

◆ checkRegisterClass()

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

Definition at line 495 of file M68kAsmParser.cpp.

References llvm_unreachable.

◆ getRegisterByIndex()

static unsigned getRegisterByIndex ( unsigned  RegisterIndex)
inlinestatic

Definition at line 234 of file M68kAsmParser.cpp.

References assert().

◆ getRegisterIndex()

static unsigned getRegisterIndex ( unsigned  Register)
inlinestatic

Definition at line 245 of file M68kAsmParser.cpp.

References llvm_unreachable.

◆ LLVMInitializeM68kAsmParser()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kAsmParser ( )

Definition at line 226 of file M68kAsmParser.cpp.

References llvm::getTheM68kTarget(), 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