LLVM  13.0.0git
Macros | Functions
SIMCCodeEmitter.cpp File Reference
#include "MCTargetDesc/AMDGPUFixupKinds.h"
#include "MCTargetDesc/AMDGPUMCCodeEmitter.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "SIDefines.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "AMDGPUGenMCCodeEmitter.inc"
Include dependency graph for SIMCCodeEmitter.cpp:

Go to the source code of this file.

Macros

#define ENABLE_INSTR_PREDICATE_VERIFIER
 

Functions

template<typename IntTy >
static uint32_t getIntInlineImmEncoding (IntTy Imm)
 
static uint32_t getLit16IntEncoding (uint16_t Val, const MCSubtargetInfo &STI)
 
static uint32_t getLit16Encoding (uint16_t Val, const MCSubtargetInfo &STI)
 
static uint32_t getLit32Encoding (uint32_t Val, const MCSubtargetInfo &STI)
 
static uint32_t getLit64Encoding (uint64_t Val, const MCSubtargetInfo &STI)
 
static bool needsPCRel (const MCExpr *Expr)
 

Detailed Description

The SI code emitter produces machine code that can be executed directly on the GPU device.

Definition in file SIMCCodeEmitter.cpp.

Macro Definition Documentation

◆ ENABLE_INSTR_PREDICATE_VERIFIER

#define ENABLE_INSTR_PREDICATE_VERIFIER

Definition at line 549 of file SIMCCodeEmitter.cpp.

Function Documentation

◆ getIntInlineImmEncoding()

template<typename IntTy >
static uint32_t getIntInlineImmEncoding ( IntTy  Imm)
static

◆ getLit16Encoding()

static uint32_t getLit16Encoding ( uint16_t  Val,
const MCSubtargetInfo STI 
)
static

◆ getLit16IntEncoding()

static uint32_t getLit16IntEncoding ( uint16_t  Val,
const MCSubtargetInfo STI 
)
static

Definition at line 100 of file SIMCCodeEmitter.cpp.

References getIntInlineImmEncoding().

◆ getLit32Encoding()

static uint32_t getLit32Encoding ( uint32_t  Val,
const MCSubtargetInfo STI 
)
static

◆ getLit64Encoding()

static uint32_t getLit64Encoding ( uint64_t  Val,
const MCSubtargetInfo STI 
)
static

◆ needsPCRel()

static bool needsPCRel ( const MCExpr Expr)
static