Przemyslaw Ossowski via llvm-dev
2021-Oct-06 12:52 UTC
[llvm-dev] Disabling/Enabling subtarget's feature from clang cmdline
Hello, I have a set of two subtargets, each of them has a set of given features.>From "llc" cmdline it is possible to enable/disable given feature on givensubtarget by adding: -attr=+/-<feature_name> Is it possible to explicitly disable/enable a given feature from clang cmdline? I was trying to do it with "-mllvm -attr=feature_name", but it didn't work. Thanks, Przemek -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211006/4d60e53e/attachment.html>
Wang, Pengfei via llvm-dev
2021-Oct-06 14:10 UTC
[llvm-dev] Disabling/Enabling subtarget's feature from clang cmdline
It’s usually options like “-m<feature_name>” and “-mno-<feature_name>” You can find all usable options here, e.g.: https://clang.llvm.org/docs/ClangCommandLineReference.html#x86 Thanks Phoebe (Pengfei) From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Przemyslaw Ossowski via llvm-dev Sent: Wednesday, October 6, 2021 8:53 PM To: llvm-dev <llvm-dev at lists.llvm.org> Subject: [llvm-dev] Disabling/Enabling subtarget's feature from clang cmdline Hello, I have a set of two subtargets, each of them has a set of given features. From "llc" cmdline it is possible to enable/disable given feature on given subtarget by adding: -attr=+/-<feature_name> Is it possible to explicitly disable/enable a given feature from clang cmdline? I was trying to do it with "-mllvm -attr=feature_name", but it didn't work. Thanks, Przemek -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211006/0bafee95/attachment.html>