[PATCH] D126085: [RISCV] Add a subtarget feature to enable unaligned scalar loads and stores
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 3 11:27:50 PDT 2022
craig.topper added a comment.
In D126085#3556502 <https://reviews.llvm.org/D126085#3556502>, @BaoshanPang wrote:
> How to enable this feature through clang? I tried this:
>
> $ ./bin/clang -S t.c -O2 -mllvm -mattr=+unaligned-scalar-mem
>
> But get:
> clang (LLVM option parsing): Unknown command line argument '-mattr=+unaligned-scalar-mem'. Try: 'clang (LLVM option parsing) --help'
> clang (LLVM option parsing): Did you mean '--mv67t=+unaligned-scalar-mem'?
Try `-Xclang -target-feature -Xclang +unaligned-scalar-mem`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126085/new/
https://reviews.llvm.org/D126085
More information about the llvm-commits
mailing list