LLVM
15.0.0git
|
#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 "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Support/Casting.h"
#include "AMDGPUGenMCCodeEmitter.inc"
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) |
The SI code emitter produces machine code that can be executed directly on the GPU device.
Definition in file SIMCCodeEmitter.cpp.
#define ENABLE_INSTR_PREDICATE_VERIFIER |
Definition at line 562 of file SIMCCodeEmitter.cpp.
|
static |
Definition at line 91 of file SIMCCodeEmitter.cpp.
References llvm::abs(), and llvm::RISCVMatInt::Imm.
Referenced by getLit16Encoding(), getLit16IntEncoding(), getLit32Encoding(), and getLit64Encoding().
|
static |
Definition at line 106 of file SIMCCodeEmitter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), and getIntInlineImmEncoding().
|
static |
Definition at line 101 of file SIMCCodeEmitter.cpp.
References getIntInlineImmEncoding().
|
static |
Definition at line 142 of file SIMCCodeEmitter.cpp.
References f(), llvm::FloatToBits(), llvm::MCSubtargetInfo::getFeatureBits(), and getIntInlineImmEncoding().
|
static |
Definition at line 178 of file SIMCCodeEmitter.cpp.
References llvm::DoubleToBits(), llvm::MCSubtargetInfo::getFeatureBits(), and getIntInlineImmEncoding().
Definition at line 487 of file SIMCCodeEmitter.cpp.
References llvm::MCExpr::Binary, llvm::MCExpr::Constant, llvm::MCExpr::getKind(), llvm_unreachable, 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.