summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-12-23 22:25:27 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-12-23 22:25:27 +0000
commit6f219132a760c1c6051cc1d01b215793aaf75464 (patch)
treec670ef20f34dda52062d306882c8ae9a16e84bc2 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
parent484f05e14d32e1b85740d38d9ede4bca4609d465 (diff)
downloadbcm5719-llvm-6f219132a760c1c6051cc1d01b215793aaf75464.tar.gz
bcm5719-llvm-6f219132a760c1c6051cc1d01b215793aaf75464.zip
Initial checkin of APInt'ififcation of switch lowering
llvm-svn: 61395
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
index db70f169020..4d450cb60db 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
@@ -246,8 +246,8 @@ class SelectionDAGLowering {
}
};
- unsigned Clusterify(CaseVector& Cases, const SwitchInst &SI);
-
+ size_t Clusterify(CaseVector& Cases, const SwitchInst &SI);
+
/// CaseBlock - This structure is used to communicate between SDLowering and
/// SDISel for the code generation of additional basic blocks needed by multi-
/// case switch statements.
@@ -284,11 +284,11 @@ class SelectionDAGLowering {
MachineBasicBlock *Default;
};
struct JumpTableHeader {
- JumpTableHeader(uint64_t F, uint64_t L, Value* SV, MachineBasicBlock* H,
+ JumpTableHeader(APInt F, APInt L, Value* SV, MachineBasicBlock* H,
bool E = false):
First(F), Last(L), SValue(SV), HeaderBB(H), Emitted(E) {}
- uint64_t First;
- uint64_t Last;
+ APInt First;
+ APInt Last;
Value *SValue;
MachineBasicBlock *HeaderBB;
bool Emitted;
@@ -306,14 +306,14 @@ class SelectionDAGLowering {
typedef SmallVector<BitTestCase, 3> BitTestInfo;
struct BitTestBlock {
- BitTestBlock(uint64_t F, uint64_t R, Value* SV,
+ BitTestBlock(APInt F, APInt R, Value* SV,
unsigned Rg, bool E,
MachineBasicBlock* P, MachineBasicBlock* D,
const BitTestInfo& C):
First(F), Range(R), SValue(SV), Reg(Rg), Emitted(E),
Parent(P), Default(D), Cases(C) { }
- uint64_t First;
- uint64_t Range;
+ APInt First;
+ APInt Range;
Value *SValue;
unsigned Reg;
bool Emitted;
OpenPOWER on IntegriCloud