Introduce TLI predicative for base-relative Jump Tables.
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 15 Nov 2016 12:39:46 +0000 (12:39 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 15 Nov 2016 12:39:46 +0000 (12:39 +0000)
commit1a7eec68a9b38314f01a8cd795d3eec92d996136
tree69f8a097361224b70ab3bd214b2ea85bf84bd224
parent6380ce22127370f34b9d958209d634ddde3abe97
Introduce TLI predicative for base-relative Jump Tables.

For 64bit ABIs it is common practice to use relative Jump Tables with
potentially different relocation bases.  As the logic for the jump table
itself doesn't depend on the relocation base, make it easier for targets
to use the generic logic. Start by dropping the now redundant MIPS logic.

Differential Revision: https://reviews.llvm.org/D26578

llvm-svn: 286951
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/Target/Mips/MipsISelLowering.cpp
llvm/lib/Target/Mips/MipsISelLowering.h