LLVM 20.0.0git
Macros | Functions | Variables
HexagonMCCodeEmitter.cpp File Reference
#include "MCTargetDesc/HexagonMCCodeEmitter.h"
#include "MCTargetDesc/HexagonBaseInfo.h"
#include "MCTargetDesc/HexagonFixupKinds.h"
#include "MCTargetDesc/HexagonMCExpr.h"
#include "MCTargetDesc/HexagonMCInstrInfo.h"
#include "MCTargetDesc/HexagonMCTargetDesc.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixup.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <map>
#include <string>
#include <vector>
#include "HexagonGenMCCodeEmitter.inc"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "mccodeemitter"
 
#define _   fixup_Invalid
 
#define P(x)   Hexagon::fixup_Hexagon##x
 

Functions

 STATISTIC (MCNumEmitted, "Number of MC instructions emitted")
 
static bool RegisterMatches (unsigned Consumer, unsigned Producer, unsigned Producer2)
 
static void raise_relocation_error (unsigned Width, unsigned Kind)
 
static bool isPCRel (unsigned Kind)
 

Variables

static const unsigned fixup_Invalid = ~0u
 
static const std::map< unsigned, std::vector< unsigned > > ExtFixups
 
static const std::map< unsigned, std::vector< unsigned > > StdFixups
 

Macro Definition Documentation

◆ _

#define _   fixup_Invalid

Definition at line 47 of file HexagonMCCodeEmitter.cpp.

◆ DEBUG_TYPE

#define DEBUG_TYPE   "mccodeemitter"

Definition at line 38 of file HexagonMCCodeEmitter.cpp.

◆ P

#define P (   x)    Hexagon::fixup_Hexagon##x

Definition at line 48 of file HexagonMCCodeEmitter.cpp.

Function Documentation

◆ isPCRel()

static bool isPCRel ( unsigned  Kind)
static

◆ raise_relocation_error()

static void raise_relocation_error ( unsigned  Width,
unsigned  Kind 
)
static

◆ RegisterMatches()

static bool RegisterMatches ( unsigned  Consumer,
unsigned  Producer,
unsigned  Producer2 
)
static

◆ STATISTIC()

STATISTIC ( MCNumEmitted  ,
"Number of MC instructions emitted"   
)

Variable Documentation

◆ ExtFixups

const std::map<unsigned, std::vector<unsigned> > ExtFixups
static

Definition at line 49 of file HexagonMCCodeEmitter.cpp.

◆ fixup_Invalid

const unsigned fixup_Invalid = ~0u
static

Definition at line 45 of file HexagonMCCodeEmitter.cpp.

◆ StdFixups

const std::map<unsigned, std::vector<unsigned> > StdFixups
static

Definition at line 173 of file HexagonMCCodeEmitter.cpp.