hameeza ahmed via llvm-dev
2017-Jul-21 08:47 UTC
[llvm-dev] Adding Flag Support in LLVM Backend
Hello. I need to introduce a new flag in llc command like llc -mV to control the vectorization. How can I achieve this?? Please help. Thank You -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170721/93b759d1/attachment.html>
Diana Picus via llvm-dev
2017-Jul-21 09:33 UTC
[llvm-dev] Adding Flag Support in LLVM Backend
Hi, You can find plenty of examples (including in the vectorizer) if you grep for cl::opt. The docs are here: https://llvm.org/docs/CommandLine.html Hope that helps, Diana On 21 July 2017 at 10:47, hameeza ahmed via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Hello. > > I need to introduce a new flag in llc command like llc -mV to control the > vectorization. How can I achieve this?? > > > Please help. > > Thank You > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
hameeza ahmed via llvm-dev
2017-Jul-21 17:17 UTC
[llvm-dev] Adding Flag Support in LLVM Backend
Thank you. I want to define a flag -optt-enabled in llc so i wrote following line in llc.cpp: static cl::opt<bool> OPPT("oppt-enabled", cl::desc("Enables Optimization"), cl::init(false)); Now i want to check its value in x86isellwering.cpp there i wrote: if (OPPT) {addRegisterClass(.............) } but getting the error use of undeclared identifier 'OPPT' Could someone tell me where i am mistaken? what else do i need to define. On Fri, Jul 21, 2017 at 2:33 PM, Diana Picus <diana.picus at linaro.org> wrote:> Hi, > > You can find plenty of examples (including in the vectorizer) if you > grep for cl::opt. > The docs are here: > https://llvm.org/docs/CommandLine.html > > Hope that helps, > Diana > > On 21 July 2017 at 10:47, hameeza ahmed via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > Hello. > > > > I need to introduce a new flag in llc command like llc -mV to control the > > vectorization. How can I achieve this?? > > > > > > Please help. > > > > Thank You > > > > _______________________________________________ > > 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/20170721/6c7904d8/attachment.html>
Reasonably Related Threads
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
- Buildbots timing out on full builds