[llvm-dev] Adding Flag Support in LLVM Backend
hameeza ahmed via llvm-dev
llvm-dev at lists.llvm.org
Fri Jul 21 10:17:41 PDT 2017
I want to define a flag -optt-enabled in llc so i wrote following line in
OPPT("oppt-enabled", cl::desc("Enables Optimization"), cl::init(false));
Now i want to check its value in x86isellwering.cpp
there i wrote:
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:
> You can find plenty of examples (including in the vectorizer) if you
> grep for cl::opt.
> The docs are here:
> Hope that helps,
> 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...
More information about the llvm-dev