[llvm-dev] Disabling/Enabling subtarget's feature from clang cmdline

Wang, Pengfei via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 6 07:10:36 PDT 2021

It’s usually options like “-m<feature_name>” and “-mno-<feature_name>”
You can find all usable options here, e.g.:

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

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211006/0bafee95/attachment.html>

More information about the llvm-dev mailing list