[PATCH] D77867: [RISCV][AsmParser] Implement .option (no)pic
Roger Ferrer Ibanez via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 06:25:43 PDT 2020
rogfer01 created this revision.
rogfer01 added reviewers: asb, luismarques, jrtc27, lewis-revill.
Herald added subscribers: llvm-commits, evandro, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, MaskRay, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.
This directive impacts assembly pseudoinstruction `la`.
Also add a test for codegen to assert that this directive behaves like other ones (i.e. no effect) when directly emitting ELF files from codegen.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77867
Files:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.h
llvm/test/CodeGen/RISCV/option-nopic.ll
llvm/test/CodeGen/RISCV/option-pic.ll
llvm/test/MC/RISCV/option-nopic.s
llvm/test/MC/RISCV/option-pic.s
llvm/test/MC/RISCV/option-pushpop.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77867.256553.patch
Type: text/x-patch
Size: 11917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200410/63d1810c/attachment.bin>
More information about the llvm-commits
mailing list