mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
whitespace cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -163,7 +163,7 @@ private:
|
|||||||
/// The comparison function for sorting the switch case values in the vector.
|
/// The comparison function for sorting the switch case values in the vector.
|
||||||
/// WARNING: Case ranges should be disjoint!
|
/// WARNING: Case ranges should be disjoint!
|
||||||
struct CaseCmp {
|
struct CaseCmp {
|
||||||
bool operator () (const Case& C1, const Case& C2) {
|
bool operator()(const Case &C1, const Case &C2) {
|
||||||
assert(isa<ConstantInt>(C1.Low) && isa<ConstantInt>(C2.High));
|
assert(isa<ConstantInt>(C1.Low) && isa<ConstantInt>(C2.High));
|
||||||
const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low);
|
const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low);
|
||||||
const ConstantInt* CI2 = cast<const ConstantInt>(C2.High);
|
const ConstantInt* CI2 = cast<const ConstantInt>(C2.High);
|
||||||
@@ -172,12 +172,12 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct CaseBitsCmp {
|
struct CaseBitsCmp {
|
||||||
bool operator () (const CaseBits& C1, const CaseBits& C2) {
|
bool operator()(const CaseBits &C1, const CaseBits &C2) {
|
||||||
return C1.Bits > C2.Bits;
|
return C1.Bits > C2.Bits;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
size_t Clusterify(CaseVector& Cases, const SwitchInst &SI);
|
size_t Clusterify(CaseVector &Cases, const SwitchInst &SI);
|
||||||
|
|
||||||
/// CaseBlock - This structure is used to communicate between
|
/// CaseBlock - This structure is used to communicate between
|
||||||
/// SelectionDAGBuilder and SDISel for the code generation of additional basic
|
/// SelectionDAGBuilder and SDISel for the code generation of additional basic
|
||||||
@@ -215,7 +215,7 @@ private:
|
|||||||
MachineBasicBlock *Default;
|
MachineBasicBlock *Default;
|
||||||
};
|
};
|
||||||
struct JumpTableHeader {
|
struct JumpTableHeader {
|
||||||
JumpTableHeader(APInt F, APInt L, Value* SV, MachineBasicBlock* H,
|
JumpTableHeader(APInt F, APInt L, Value *SV, MachineBasicBlock *H,
|
||||||
bool E = false):
|
bool E = false):
|
||||||
First(F), Last(L), SValue(SV), HeaderBB(H), Emitted(E) {}
|
First(F), Last(L), SValue(SV), HeaderBB(H), Emitted(E) {}
|
||||||
APInt First;
|
APInt First;
|
||||||
@@ -230,8 +230,8 @@ private:
|
|||||||
BitTestCase(uint64_t M, MachineBasicBlock* T, MachineBasicBlock* Tr):
|
BitTestCase(uint64_t M, MachineBasicBlock* T, MachineBasicBlock* Tr):
|
||||||
Mask(M), ThisBB(T), TargetBB(Tr) { }
|
Mask(M), ThisBB(T), TargetBB(Tr) { }
|
||||||
uint64_t Mask;
|
uint64_t Mask;
|
||||||
MachineBasicBlock* ThisBB;
|
MachineBasicBlock *ThisBB;
|
||||||
MachineBasicBlock* TargetBB;
|
MachineBasicBlock *TargetBB;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef SmallVector<BitTestCase, 3> BitTestInfo;
|
typedef SmallVector<BitTestCase, 3> BitTestInfo;
|
||||||
|
Reference in New Issue
Block a user