Rail Shafigulin via llvm-dev
2016-May-02 17:32 UTC
[llvm-dev] enable/disable features through clang
Is there a way to enable/disable target features through clang? I found this, https://github.com/avr-llvm/llvm/issues/9, but this seems to be talking about llc -mattr=+feature1,-feature2... Is there something equivalent for clang? -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160502/da652ea8/attachment.html>
John Criswell via llvm-dev
2016-May-03 13:21 UTC
[llvm-dev] enable/disable features through clang
On 5/2/16 1:32 PM, Rail Shafigulin via llvm-dev wrote:> Is there a way to enable/disable target features through clang? > > I found this, https://github.com/avr-llvm/llvm/issues/9, but this > seems to be talking about llc -mattr=+feature1,-feature2... > > Is there something equivalent for clang?Have you tried using clang --help-hidden to print all of its options? There might be a -mllvm -<something> option that will do what you want. Regards, John Criswell> > -- > Rail Shafigulin > Software Engineer > Esencia Technologies > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- John Criswell Assistant Professor Department of Computer Science, University of Rochester http://www.cs.rochester.edu/u/criswell -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160503/1e1dcb4b/attachment.html>
Eric Christopher via llvm-dev
2016-May-03 20:47 UTC
[llvm-dev] enable/disable features through clang
You should pipe through command line options that you want via the driver. Take a look at pretty much every other target for a guideline on how to do this. -mllvm -mattr=... is not for production use and you shouldn't do this. -eric On Mon, May 2, 2016 at 10:32 AM Rail Shafigulin via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Is there a way to enable/disable target features through clang? > > I found this, https://github.com/avr-llvm/llvm/issues/9, but this seems > to be talking about llc -mattr=+feature1,-feature2... > > Is there something equivalent for clang? > > -- > Rail Shafigulin > Software Engineer > Esencia Technologies > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160503/f494de44/attachment.html>
Rail Shafigulin via llvm-dev
2016-May-03 21:27 UTC
[llvm-dev] enable/disable features through clang
On Tue, May 3, 2016 at 1:47 PM, Eric Christopher <echristo at gmail.com> wrote:> You should pipe through command line options that you want via the driver. >I'm not sure what you mean by "pipe through". Do you mind explaining it?> Take a look at pretty much every other target for a guideline on how to do > this. > > -mllvm -mattr=... is not for production use and you shouldn't do this. > > -eric > > On Mon, May 2, 2016 at 10:32 AM Rail Shafigulin via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Is there a way to enable/disable target features through clang? >> >> I found this, https://github.com/avr-llvm/llvm/issues/9, but this seems >> to be talking about llc -mattr=+feature1,-feature2... >> >> Is there something equivalent for clang? >> >> -- >> Rail Shafigulin >> Software Engineer >> Esencia Technologies >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >-- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160503/f8a2db35/attachment.html>