diff options
| author | Alex Bradbury <asb@lowrisc.org> | 2017-11-08 13:31:40 +0000 |
|---|---|---|
| committer | Alex Bradbury <asb@lowrisc.org> | 2017-11-08 13:31:40 +0000 |
| commit | 74913e1c70097babd15de705b6c4bd3dbcfebfa6 (patch) | |
| tree | c8d5e34457d86a5520db768abc6c62e7c5b85b39 /llvm/lib/CodeGen/MachineRegionInfo.cpp | |
| parent | 8fc64a773208ed6f41cf1ce50bf809202fb4a300 (diff) | |
| download | bcm5719-llvm-74913e1c70097babd15de705b6c4bd3dbcfebfa6.tar.gz bcm5719-llvm-74913e1c70097babd15de705b6c4bd3dbcfebfa6.zip | |
[RISCV] Codegen for conditional branches
A good portion of this patch is the extra functions that needed to be
implemented to support the test case. e.g. storeRegToStackSlot,
loadRegFromStackSlot, eliminateFrameIndex.
Setting ISD::BR_CC to Expand may appear non-obvious on an architecture with
branch+cmp instructions. However, I found it much easier to deal with matching
the expanded form.
I had to change simm13_lsb0 and simm21_lsb0 to inherit from the
Operand<OtherVT> class rather than Operand<i32> in order to keep tablegen
happy. This isn't a big deal, but it does seem a shame to lose the uniformity
across immediate types when there's not an obvious benefit (I'm hoping a
tablegen expert will educate me on what I'm missing here!).
Differential Revision: https://reviews.llvm.org/D29935
llvm-svn: 317690
Diffstat (limited to 'llvm/lib/CodeGen/MachineRegionInfo.cpp')
0 files changed, 0 insertions, 0 deletions

