Displaying 4 results from an estimated 4 matches for "optstrength".
2011 Jan 27
2
[LLVMdev] Passing command line arguments to optimization passes
A follow-up question:
Is there a way to make different passes accept one command line option that
will affect all of them?
For example, I'd like to have a -optStrength parameter, that can be given to
all of my passes simultaneously.
Thanks a lot,
Guy
Arnaud Allard de Grandmaison wrote:
>
> Hi Harel,
>
> Several existing passes can take command line arguments. Have a look at
> lib/Transforms/Scalar/LoopUnrollPass.cpp for example. Its command li...
2011 Jan 28
0
[LLVMdev] Passing command line arguments to optimization passes
...rsday, January 27, 2011 12:38 PM
To: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Passing command line arguments to optimization passes
A follow-up question:
Is there a way to make different passes accept one command line option that
will affect all of them?
For example, I'd like to have a -optStrength parameter, that can be given to
all of my passes simultaneously.
Thanks a lot,
Guy
Arnaud Allard de Grandmaison wrote:
>
> Hi Harel,
>
> Several existing passes can take command line arguments. Have a look at
> lib/Transforms/Scalar/LoopUnrollPass.cpp for example. Its command line...
2011 Jan 27
0
[LLVMdev] Passing command line arguments to optimization passes
Hi Harel,
Several existing passes can take command line arguments. Have a look at lib/Transforms/Scalar/LoopUnrollPass.cpp for example. Its command line arguments are defined using the cl::opt objects.
Best regards,
--
Arnaud de Grandmaison
________________________________
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Harel Cain
Sent: Thursday, January
2011 Jan 27
2
[LLVMdev] Passing command line arguments to optimization passes
Hi all,
I was wondering if there's any way to pass command line arguments to LLVM
optimization passes when run through the opt tool.
For example, suppose I register called MyPass, then I want to run
opt -load libMyPass.so -MyPass 3 < input.bc
and have "3" be available to MyPass as a kind of argv argumnet through some
method.
Or does it take a major rewrite of the opt tool