aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCRegisterInfo.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-08-12Avoid accessing LLVM/DWARF register mappings if undefinedDominic Chen1-0/+4
Summary: If the backend does not define LLVM/DWARF register mappings, the associated variables are undefined since the map initializer is called by auto-generated TableGen routines. This patch initializes the pointers and sizes to nullptr and zero, respectively, and checks that they are valid before searching for a mapping. Reviewers: grosbach, dschuff Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23458 llvm-svn: 278574
2016-02-16[codeview] Bail on a DBG_VALUE register operand with no registerReid Kleckner1-1/+3
This apparently comes up when the register allocator decides that a variable will become undef along a certain path. Also improve the error message we emit when we can't map from LLVM register number to CV register number. llvm-svn: 261016
2016-02-10[codeview] Describe int local variables using .cv_def_rangeReid Kleckner1-0/+7
Summary: Refactor common value, scope, and label tracking logic out of DwarfDebug into a common base class called DebugHandlerBase. Update an old LLVM IR test case to avoid an assertion in LexicalScopes. Reviewers: dblaikie, majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16931 llvm-svn: 260432
2013-05-31Make SubRegIndex size mandatory, following r183020.Ahmed Bougacha1-9/+8
This also makes TableGen able to compute sizes/offsets of synthesized indices representing tuples. llvm-svn: 183061
2013-05-31Add a way to define the bit range covered by a SubRegIndex.Ahmed Bougacha1-0/+13
NOTE: If this broke your out-of-tree backend, in *RegisterInfo.td, change the instances of SubRegIndex that have a comps template arg to use the ComposedSubRegIndex class instead. In TableGen land, this adds Size and Offset attributes to SubRegIndex, and the ComposedSubRegIndex class, for which the Size and Offset are computed by TableGen. This also adds an accessor in MCRegisterInfo, and Size/Offsets for the X86 and ARM subreg indices. llvm-svn: 183020
2012-09-11Add MCRI::getNumSubRegIndices() and start checking SubRegIndex ranges.Jakob Stoklund Olesen1-0/+3
Apparently, NumSubRegIndices was completely unused before. Adjust it by one to include the null subreg index, just like getNumRegs() includes the null register. llvm-svn: 163628
2012-07-27Give MCRegisterInfo an implementation file.Jakob Stoklund Olesen1-0/+71
Move some functions from MCRegisterInfo.h that don't need to be inline. This shrinks llc by 8K. llvm-svn: 160865