LLVM  5.0.0
Functions
AMDGPUAsmPrinter.cpp File Reference

The AMDGPUAsmPrinter is used to print both assembly string and also binary code. More...

#include "AMDGPUAsmPrinter.h"
#include "AMDGPU.h"
#include "AMDGPUSubtarget.h"
#include "AMDGPUTargetMachine.h"
#include "InstPrinter/AMDGPUInstPrinter.h"
#include "MCTargetDesc/AMDGPUTargetStreamer.h"
#include "R600Defines.h"
#include "R600MachineFunctionInfo.h"
#include "R600RegisterInfo.h"
#include "SIDefines.h"
#include "SIInstrInfo.h"
#include "SIMachineFunctionInfo.h"
#include "SIRegisterInfo.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
Include dependency graph for AMDGPUAsmPrinter.cpp:

Go to the source code of this file.

Functions

static uint32_t getFPMode (const MachineFunction &F)
 
static AsmPrinter * createAMDGPUAsmPrinterPass (TargetMachine &tm, std::unique_ptr< MCStreamer > &&Streamer)
 
void LLVMInitializeAMDGPUAsmPrinter ()
 
static bool hasAnyNonFlatUseOfReg (const MachineRegisterInfo &MRI, const SIInstrInfo &TII, unsigned Reg)
 
static unsigned getNumExtraSGPRs (const SISubtarget &ST, bool VCCUsed, bool FlatScrUsed)
 
static unsigned getRsrcReg (CallingConv::ID CallConv)
 
static amd_element_byte_size_t getElementByteSizeValue (unsigned Size)
 

Detailed Description

The AMDGPUAsmPrinter is used to print both assembly string and also binary code.

When passed an MCAsmStreamer it prints assembly and when passed an MCObjectStreamer it outputs binary code.

Definition in file AMDGPUAsmPrinter.cpp.

Function Documentation

static AsmPrinter* createAMDGPUAsmPrinterPass ( TargetMachine &  tm,
std::unique_ptr< MCStreamer > &&  Streamer 
)
static

Definition at line 82 of file AMDGPUAsmPrinter.cpp.

Referenced by LLVMInitializeAMDGPUAsmPrinter().

static amd_element_byte_size_t getElementByteSizeValue ( unsigned  Size)
static
static uint32_t getFPMode ( const MachineFunction &  F)
static
static unsigned getNumExtraSGPRs ( const SISubtarget &  ST,
bool  VCCUsed,
bool  FlatScrUsed 
)
static
static unsigned getRsrcReg ( CallingConv::ID  CallConv)
static
static bool hasAnyNonFlatUseOfReg ( const MachineRegisterInfo &  MRI,
const SIInstrInfo &  TII,
unsigned  Reg 
)
static
void LLVMInitializeAMDGPUAsmPrinter ( )