LLVM 20.0.0git
|
The AMDGPU code emitter produces machine code that can be executed directly on the GPU device. More...
#include "MCTargetDesc/AMDGPUFixupKinds.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "SIDefines.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/ADT/APInt.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/EndianStream.h"
#include <optional>
#include "AMDGPUGenMCCodeEmitter.inc"
Go to the source code of this file.
Functions | |
template<typename IntTy > | |
static uint32_t | getIntInlineImmEncoding (IntTy Imm) |
static uint32_t | getLit16Encoding (uint16_t Val, const MCSubtargetInfo &STI) |
static uint32_t | getLitBF16Encoding (uint16_t Val) |
static uint32_t | getLit32Encoding (uint32_t Val, const MCSubtargetInfo &STI) |
static uint32_t | getLit16IntEncoding (uint32_t Val, const MCSubtargetInfo &STI) |
static uint32_t | getLit64Encoding (uint64_t Val, const MCSubtargetInfo &STI) |
static bool | isVCMPX64 (const MCInstrDesc &Desc) |
static bool | needsPCRel (const MCExpr *Expr) |
The AMDGPU code emitter produces machine code that can be executed directly on the GPU device.
Definition in file AMDGPUMCCodeEmitter.cpp.
|
static |
Definition at line 108 of file AMDGPUMCCodeEmitter.cpp.
Referenced by getLit16Encoding(), getLit32Encoding(), getLit64Encoding(), and getLitBF16Encoding().
|
static |
Definition at line 118 of file AMDGPUMCCodeEmitter.cpp.
References getIntInlineImmEncoding(), and llvm::MCSubtargetInfo::hasFeature().
|
static |
Definition at line 211 of file AMDGPUMCCodeEmitter.cpp.
References getLit32Encoding().
|
static |
Definition at line 175 of file AMDGPUMCCodeEmitter.cpp.
References getIntInlineImmEncoding(), and llvm::MCSubtargetInfo::hasFeature().
Referenced by getLit16IntEncoding().
|
static |
Definition at line 215 of file AMDGPUMCCodeEmitter.cpp.
References getIntInlineImmEncoding(), and llvm::MCSubtargetInfo::hasFeature().
Definition at line 154 of file AMDGPUMCCodeEmitter.cpp.
References getIntInlineImmEncoding().
|
static |
Definition at line 356 of file AMDGPUMCCodeEmitter.cpp.
References llvm::SIInstrFlags::VOP3.
Definition at line 546 of file AMDGPUMCCodeEmitter.cpp.
References llvm::MCExpr::Binary, llvm::MCExpr::Constant, llvm::MCExpr::getKind(), llvm_unreachable, needsPCRel(), llvm::MCBinaryExpr::Sub, llvm::MCExpr::SymbolRef, llvm::MCExpr::Target, llvm::MCExpr::Unary, llvm::MCSymbolRefExpr::VK_AMDGPU_ABS32_HI, and llvm::MCSymbolRefExpr::VK_AMDGPU_ABS32_LO.
Referenced by needsPCRel().