OSDN Git Service

Implement ARM32 switch lowering.
authorAndrew Scull <ascull@google.com>
Mon, 29 Jun 2015 18:21:18 +0000 (11:21 -0700)
committerAndrew Scull <ascull@google.com>
Mon, 29 Jun 2015 18:21:18 +0000 (11:21 -0700)
commitfdc54db71f2478ca17128f82e781aa605ab5a2e4
tree401673deb4814007b531d9c8526964f8e059f745
parenta509e1d8ca5375b86572d6942f416ac5952cdd3e
Implement ARM32 switch lowering.

A naive implementation of switch lowering using sequential tests for each of the cases.

BUG= none
TEST=switch-opt.ll
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/1213593002.
src/IceTargetLoweringARM32.cpp
src/IceTargetLoweringARM32.h
tests_lit/llvm2ice_tests/switch-opt.ll