[PATCH] D46423: [WIP, RISCV] Support .option relax and .option norelax

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 24 05:50:29 PDT 2018


lewis-revill updated this revision to Diff 162364.
lewis-revill added a comment.

Updated the interface used to update the state of the AsmBackend from the parser. This required moving the class definition into a separate header, but allows us to not pollute either the MCAsmBackend interface. Also changed the method of tracking the force relocations 'sticky bit' to a field in AsmBackend, to remove unnecessary feature definitions.

Updated the test case to better reflect desired behaviour.


Repository:
  rL LLVM

https://reviews.llvm.org/D46423

Files:
  lib/MC/MCAsmStreamer.cpp
  lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
  lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
  lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.h
  test/MC/RISCV/option-invalid.s
  test/MC/RISCV/option-relax.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46423.162364.patch
Type: text/x-patch
Size: 17715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180824/a441e082/attachment.bin>


More information about the llvm-commits mailing list