mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
ConstantRangesSet renamed to IntegersSubset. CRSBuilder renamed to IntegersSubsetMapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157612 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2234,7 +2234,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
||||
|
||||
unsigned CurIdx = 5;
|
||||
for (unsigned i = 0; i != NumCases; ++i) {
|
||||
CRSBuilder CaseBuilder;
|
||||
IntegersSubsetToBB CaseBuilder;
|
||||
unsigned NumItems = Record[CurIdx++];
|
||||
for (unsigned ci = 0; ci != NumItems; ++ci) {
|
||||
bool isSingleNumber = Record[CurIdx++];
|
||||
@@ -2262,7 +2262,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
||||
CaseBuilder.add(IntItem::fromType(OpTy, Low));
|
||||
}
|
||||
BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]);
|
||||
ConstantRangesSet Case = CaseBuilder.getCase();
|
||||
IntegersSubset Case = CaseBuilder.getCase();
|
||||
SI->addCase(Case, DestBB);
|
||||
}
|
||||
uint16_t Hash = SI->hash();
|
||||
|
||||
@@ -1157,12 +1157,12 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,
|
||||
Vals64.push_back(SI.getNumCases());
|
||||
for (SwitchInst::CaseIt i = SI.case_begin(), e = SI.case_end();
|
||||
i != e; ++i) {
|
||||
ConstantRangesSet CRS = i.getCaseValueEx();
|
||||
Vals64.push_back(CRS.getNumItems());
|
||||
for (unsigned ri = 0, rn = CRS.getNumItems(); ri != rn; ++ri) {
|
||||
ConstantRangesSet::Range r = CRS.getItem(ri);
|
||||
IntegersSubset CaseRanges = i.getCaseValueEx();
|
||||
Vals64.push_back(CaseRanges.getNumItems());
|
||||
for (unsigned ri = 0, rn = CaseRanges.getNumItems(); ri != rn; ++ri) {
|
||||
IntegersSubset::Range r = CaseRanges.getItem(ri);
|
||||
|
||||
Vals64.push_back(CRS.isSingleNumber(ri));
|
||||
Vals64.push_back(CaseRanges.isSingleNumber(ri));
|
||||
|
||||
const APInt &Low = r.Low;
|
||||
const APInt &High = r.High;
|
||||
|
||||
Reference in New Issue
Block a user