#include "SIProgramInfo.h"
#include "GCNSubtarget.h"
#include "SIDefines.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/MC/MCExpr.h"
usingnamespacellvm;
void SIProgramInfo::reset(const MachineFunction &MF) { … }
static uint64_t getComputePGMRSrc1Reg(const SIProgramInfo &ProgInfo,
const GCNSubtarget &ST) { … }
static uint64_t getPGMRSrc1Reg(const SIProgramInfo &ProgInfo,
CallingConv::ID CC, const GCNSubtarget &ST) { … }
static uint64_t getComputePGMRSrc2Reg(const SIProgramInfo &ProgInfo) { … }
static const MCExpr *MaskShift(const MCExpr *Val, uint32_t Mask, uint32_t Shift,
MCContext &Ctx) { … }
const MCExpr *SIProgramInfo::getComputePGMRSrc1(const GCNSubtarget &ST,
MCContext &Ctx) const { … }
const MCExpr *SIProgramInfo::getPGMRSrc1(CallingConv::ID CC,
const GCNSubtarget &ST,
MCContext &Ctx) const { … }
const MCExpr *SIProgramInfo::getComputePGMRSrc2(MCContext &Ctx) const { … }
const MCExpr *SIProgramInfo::getPGMRSrc2(CallingConv::ID CC,
MCContext &Ctx) const { … }