LLVM  3.7.0
Functions
SIMCCodeEmitter.cpp File Reference

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

#include "AMDGPU.h"
#include "MCTargetDesc/AMDGPUFixupKinds.h"
#include "MCTargetDesc/AMDGPUMCCodeEmitter.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "SIDefines.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCFixup.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for SIMCCodeEmitter.cpp:

Go to the source code of this file.

Functions

template<typename IntTy >
static uint32_t getIntInlineImmEncoding (IntTy Imm)
 
static uint32_t getLit32Encoding (uint32_t Val)
 
static uint32_t getLit64Encoding (uint64_t Val)
 

Detailed Description

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

Definition in file SIMCCodeEmitter.cpp.

Function Documentation

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

Definition at line 90 of file SIMCCodeEmitter.cpp.

References llvm::abs().

Referenced by getLit32Encoding(), and getLit64Encoding().

static uint32_t getLit32Encoding ( uint32_t  Val)
static

Definition at line 100 of file SIMCCodeEmitter.cpp.

References llvm::FloatToBits(), and getIntInlineImmEncoding().

static uint32_t getLit64Encoding ( uint64_t  Val)
static

Definition at line 132 of file SIMCCodeEmitter.cpp.

References llvm::DoubleToBits(), and getIntInlineImmEncoding().