[PATCH] D121183: [RISCV] Generate correct ELF EFlags when .ll file has target-abi attribute
Zakk Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 16 10:30:29 PDT 2022
khchen accepted this revision.
khchen added a comment.
This revision is now accepted and ready to land.
Herald added a subscriber: s.
LGTM. thanks!
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp:89
+
+ // Check if Feature string is valid
+ auto ISAInfo =
----------------
StephenFan wrote:
> khchen wrote:
> > Why do we need to have additional check here?
> > Could we have a test to show this check could catch an error?
> The reason is the same as what I said above.
I think we could remove this checking and update expected ERROR message in `mattr-invalid-combination.ll` and `mattr-invalid-combination.s` from `standard user-level extension 'e' requires 'rv32'` to `RV32E can't be enabled for an RV64 target` in another NFC patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121183/new/
https://reviews.llvm.org/D121183
More information about the llvm-commits
mailing list