]> granicus.if.org Git - llvm/commit
[GlobalISel] Add support for switch statements
authorKristof Beyls <kristof.beyls@arm.com>
Thu, 5 Jan 2017 11:28:51 +0000 (11:28 +0000)
committerKristof Beyls <kristof.beyls@arm.com>
Thu, 5 Jan 2017 11:28:51 +0000 (11:28 +0000)
commit3c2073e562bfaad97e69df4bce459e43c85be842
tree1ad1b001a5721621a733581711de0ced62d1a38e
parent44e43a64a6e189325bcc9b2b60ae4d6b56bd6983
[GlobalISel] Add support for switch statements

This commit does this using a trivial chain of conditional branches.  In the
future, we probably want to reuse the optimized switch lowering used in
SelectionDAG.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291099 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/IRTranslator.h
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll