mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
llvm-tblgen: Stabilize subreg index tables.
Otherwise SequenceToOffsetTable will sort by pointer and becomes non-deterministic. llvm-svn: 190514
This commit is contained in:
parent
96466ff8b4
commit
4182059208
@ -722,7 +722,7 @@ RegisterInfoEmitter::runMCDesc(raw_ostream &OS, CodeGenTarget &Target,
|
||||
// Keep track of sub-register names as well. These are not differentially
|
||||
// encoded.
|
||||
typedef SmallVector<const CodeGenSubRegIndex*, 4> SubRegIdxVec;
|
||||
SequenceToOffsetTable<SubRegIdxVec> SubRegIdxSeqs;
|
||||
SequenceToOffsetTable<SubRegIdxVec, CodeGenSubRegIndex::Less> SubRegIdxSeqs;
|
||||
SmallVector<SubRegIdxVec, 4> SubRegIdxLists(Regs.size());
|
||||
|
||||
SequenceToOffsetTable<std::string> RegStrings;
|
||||
@ -1090,7 +1090,7 @@ RegisterInfoEmitter::runTargetDesc(raw_ostream &OS, CodeGenTarget &Target,
|
||||
// Compress the sub-reg index lists.
|
||||
typedef std::vector<const CodeGenSubRegIndex*> IdxList;
|
||||
SmallVector<IdxList, 8> SuperRegIdxLists(RegisterClasses.size());
|
||||
SequenceToOffsetTable<IdxList> SuperRegIdxSeqs;
|
||||
SequenceToOffsetTable<IdxList, CodeGenSubRegIndex::Less> SuperRegIdxSeqs;
|
||||
BitVector MaskBV(RegisterClasses.size());
|
||||
|
||||
for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
|
||||
|
Loading…
Reference in New Issue
Block a user