34 "This is not a subregister index");
37 const uint16_t *SRI = SubRegIndices +
get(
Reg).SubRegIndices;
49 const uint16_t *SRI = SubRegIndices +
get(
Reg).SubRegIndices;
58 "This is not a subregister index");
59 return SubRegIdxRanges[Idx].
Size;
64 "This is not a subregister index");
65 return SubRegIdxRanges[Idx].
Offset;
70 unsigned Size = isEH ? EHL2DwarfRegsSize : L2DwarfRegsSize;
76 if (I == M+Size || I->
FromReg != RegNum)
84 unsigned Size = isEH ? EHDwarf2LRegsSize : Dwarf2LRegsSize;
90 if (I != M + Size && I->
FromReg == RegNum)
111 if (I == L2SEHRegs.end())
return (
int)RegNum;
116 if (L2CVRegs.empty())
119 if (I == L2CVRegs.end())
auto lower_bound(R &&Range, T &&Value) -> decltype(adl_begin(Range))
Provide wrappers to std::lower_bound which take ranges instead of having to pass begin/end explicitly...
Wrapper class representing physical registers. Should be passed by value.
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
This class represents lattice values for constants.
int getDwarfRegNumFromDwarfEHRegNum(unsigned RegNum) const
Map a target EH register number to an equivalent DWARF register number.
MCSuperRegIterator enumerates all super-registers of Reg.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
int getDwarfRegNum(MCRegister RegNum, bool isEH) const
Map a target register to an equivalent dwarf register number.
bool contains(MCRegister Reg) const
contains - Return true if the specified register is included in this register class.
unsigned getSubRegIndex(MCRegister RegNo, MCRegister SubRegNo) const
For a given register pair, return the sub-register index if the second register is a sub-register of ...
MCRegisterClass - Base class of TargetRegisterClass.
Optional< unsigned > getLLVMRegNum(unsigned RegNum, bool isEH) const
Map a dwarf register back to a target register.
unsigned getNumRegs() const
Return the number of registers this target has (useful for sizing arrays holding per register informa...
MCRegister getMatchingSuperReg(MCRegister Reg, unsigned SubIdx, const MCRegisterClass *RC) const
Return a super-register of the specified register Reg so its sub-register of index SubIdx is Reg...
int getSEHRegNum(MCRegister RegNum) const
Map a target register to an equivalent SEH register number.
MCRegister getSubReg(MCRegister Reg, unsigned Idx) const
Returns the physical register number of sub-register "Index" for physical register RegNo...
unsigned getSubRegIdxOffset(unsigned Idx) const
Get the offset of the bit range covered by a sub-register index.
MCSubRegIterator enumerates all sub-registers of Reg.
DwarfLLVMRegPair - Emitted by tablegen so Dwarf<->LLVM reg mappings can be performed with a binary se...
bool isValid() const
isValid - returns true if this iterator is not yet at the end.
const char * getName(MCRegister RegNo) const
Return the human-readable symbolic target-specific name for the specified physical register...
int getCodeViewRegNum(MCRegister RegNum) const
Map a target register to an equivalent CodeView register number.
unsigned getNumSubRegIndices() const
Return the number of sub-register indices understood by the target.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
unsigned getSubRegIdxSize(unsigned Idx) const
Get the size of the bit range covered by a sub-register index.