[mips] Split expandLoadImmReal into multiple methods. NFC
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 9 Oct 2019 13:12:21 +0000 (13:12 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 9 Oct 2019 13:12:21 +0000 (13:12 +0000)
commit83c8853fb373f037dd86708fa6ffd1db201d4df4
tree6cbf00c67bcda0304639e6c51f42424862ba2bce
parent1bb91093e7c372293d7a0bf78e0423ddf5b1747c
[mips] Split expandLoadImmReal into multiple methods. NFC

The `expandLoadImmReal` handles four different and almost non-overlapping
cases: loading a "single" float immediate into a GPR, loading a "single"
float immediate into a FPR, and the same couple for a "double" float
immediate.

It's better to move each `else if` branch into separate methods.

llvm-svn: 374164
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp