LLVM  15.0.0git
Classes | Macros | Functions
M68kMCCodeEmitter.cpp File Reference
#include "MCTargetDesc/M68kMCCodeEmitter.h"
#include "MCTargetDesc/M68kBaseInfo.h"
#include "MCTargetDesc/M68kFixupKinds.h"
#include "MCTargetDesc/M68kMCTargetDesc.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/raw_ostream.h"
#include <type_traits>
#include "M68kGenMCCodeEmitter.inc"
#include "M68kGenMCCodeBeads.inc"
Include dependency graph for M68kMCCodeEmitter.cpp:

Go to the source code of this file.


struct  select_uint_t< Size >


#define DEBUG_TYPE   "m68k-mccodeemitter"


template<typename value_t >
static value_t swapWord (value_t Val)
template<unsigned Size>
static unsigned getBytePosition (unsigned BitPos)
static unsigned EmitConstant (uint64_t Val, unsigned Size, unsigned Pad, uint64_t &Buffer, unsigned Offset)

Detailed Description

This file contains defintions for M68k code emitter.

Definition in file M68kMCCodeEmitter.cpp.

Macro Definition Documentation


#define DEBUG_TYPE   "m68k-mccodeemitter"

Definition at line 34 of file M68kMCCodeEmitter.cpp.

Function Documentation

◆ EmitConstant()

static unsigned EmitConstant ( uint64_t  Val,
unsigned  Size,
unsigned  Pad,
uint64_t Buffer,
unsigned  Offset 

Definition at line 338 of file M68kMCCodeEmitter.cpp.

References assert(), and llvm::isUIntN().

◆ getBytePosition()

template<unsigned Size>
static unsigned getBytePosition ( unsigned  BitPos)

Definition at line 126 of file M68kMCCodeEmitter.cpp.

References assert().

◆ swapWord()

template<typename value_t >
static value_t swapWord ( value_t  Val)

Definition at line 111 of file M68kMCCodeEmitter.cpp.

References llvm::support::big, llvm::support::endian::byte_swap(), and i.