[PATCH] D123515: [RISCV] Support '.option arch' directive
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 24 18:47:45 PDT 2023
jrtc27 added a comment.
In D123515#4370386 <https://reviews.llvm.org/D123515#4370386>, @craig.topper wrote:
> @jrtc27 are there any remaining issues you'd like to see addressed in the first commit. Android developers are really anxious to get this in to enable V extension support in the kernel.
I still really don't like the target streamer interface... using a bool for +/- would at least help, but IMO this should surely be an emitOptionArch that takes a list of string-enum pairs, where the enum is something like Full/Plus/Minus. It's the PrefixEmitted that feels particularly egregious.
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp:150
+}
+void RISCVTargetAsmStreamer::emitDirectiveOptionArchPlus(StringRef Value,
+ bool &PrefixEmitted,
----------------
Is clang-format really happy with the lack of blank lines?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123515/new/
https://reviews.llvm.org/D123515
More information about the llvm-commits
mailing list