[RISCV] Support assembling TLS LA pseudo instructions
authorLewis Revill <lewis.revill@embecosm.com>
Thu, 23 May 2019 14:46:27 +0000 (14:46 +0000)
committerLewis Revill <lewis.revill@embecosm.com>
Thu, 23 May 2019 14:46:27 +0000 (14:46 +0000)
commit74927554e22b3164e536a3e1a0ea4b70314b18e2
tree8a697321bc495ff8392b43d790599be26e403944
parent465868d63273e317ec1bab0624c8c84038701086
[RISCV] Support assembling TLS LA pseudo instructions

This patch adds the pseudo instructions la.tls.ie and la.tls.gd, used in
the initial-exec and global-dynamic TLS models respectively when
addressing a global. The pseudo instructions are expanded in the
assembly parser.

llvm-svn: 361499
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/MC/RISCV/rvi-pseudos.s