14#ifndef LLVM_LIB_TARGET_PISA_PISAREGISTERINFO_H
15#define LLVM_LIB_TARGET_PISA_PISAREGISTERINFO_H
22#define GET_REGINFO_HEADER
23#include "PISAGenRegisterInfo.inc"
33 unsigned FIOperandNum,
44 unsigned BitSize)
const;
52 unsigned Count)
const;
68 unsigned SubIdx)
const override;
72 unsigned NumElts)
const;
74 struct RegClassDescription {
76 unsigned ScalarBitSize;
80 DenseMap<const TargetRegisterClass *, std::unique_ptr<RegClassDescription>>
89 const char *SwizzleName;
91 static const DenseMap<unsigned, SwizzleDesc> &getSwizzleMap();
93 BitVector SpecialRegs;
This file implements the BitVector class.
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
This file defines the DenseMap class.
Promote Memory to Register
This file declares definitions shared across the PISA backend.
static std::vector< std::pair< int, unsigned > > Swizzle(std::vector< std::pair< int, unsigned > > Src, R600InstrInfo::BankSwizzle Swz)
MachineInstrBundleIterator< MachineInstr > iterator
Representation of each machine instruction.
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
unsigned getBitSizeFromRegClass(const TargetRegisterClass *RC) const
const char * getSwizzleName(unsigned SubReg) const
bool shouldCoalesce(MachineInstr *MI, const TargetRegisterClass *SrcRC, unsigned SubReg, const TargetRegisterClass *DstRC, unsigned DstSubReg, const TargetRegisterClass *NewRC, LiveIntervals &LIS) const override
unsigned getNumEltsFromRegClass(const TargetRegisterClass *RC) const
const TargetRegisterClass * getMatchingSuperRegClass(const TargetRegisterClass *A, const TargetRegisterClass *B, unsigned SubIdx) const override
const TargetRegisterClass * getVectorRegClass(unsigned NumElts, unsigned BitSize) const
bool isSpecialReg(Register Reg) const
static bool isSelectorSwizzle(PISA::Swizzle Swizzle)
PISA::Swizzle getSwizzle(unsigned SubReg) const
Register getFrameRegister(const MachineFunction &MF) const override
bool eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
const TargetRegisterClass * getRegClassFromLLT(LLT Ty) const
unsigned getSubRegIdx(unsigned Size, unsigned Elt) const
unsigned getCompositeSubRegIdx(unsigned Size, unsigned Base, unsigned Count) const
BitVector getReservedRegs(const MachineFunction &MF) const override
Wrapper class representing virtual and physical registers.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
RelativeUniformCounterPtr ValuesPtrExpr VTableAddr Count
MCRegisterClass TargetRegisterClass