[llvm-dev] Question on target-features

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 27 08:05:17 PDT 2019


No.  The way +feature works is that it causes the assignment Attribute=Value to happen, where Attribute and Value are strings defined in a td file.  With -feature, this assignment does not happen, so whatever the default value is of Attribute, it will remain unchanged.

--
Krzysztof Parzyszek  kparzysz at quicinc.com<mailto:kparzysz at quicinc.com>   AI tools development

From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Dangeti Tharun kumar via llvm-dev
Sent: Friday, September 27, 2019 9:23 AM
To: llvm-dev <llvm-dev at lists.llvm.org>
Subject: [EXT] [llvm-dev] Question on target-features

Hi,

In "target-features" list in LLVM-IR, there are "+feature", "-feature". My question is, does "-feature" is equivalent to not specifying a feature at all?
For example:
attributes #0 = {  "target-cpu"="znver2"  "target-features"="+avx -avx2" }
Wheather it is equalent to omitting the avx2 from list?
attributes #0 = {  "target-cpu"="znver2"  "target-features"="+avx" }
--
Regards,
DTharun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190927/bc4e95a4/attachment.html>


More information about the llvm-dev mailing list