Displaying 6 results from an estimated 6 matches for "getoptioninfo".
2009 Jun 07
2
[LLVMdev] Programmatically setting command line options?
Hello,
Is there currently a way to set options, like -time-passes or -regalloc
from C++? I looked at the code in lib/Support/CommandLine.cpp, but the
stuff that comes closest to providing such functionality (mostly
GetOptionInfo()) is marked static.
Thanks,
Paul
2009 Jun 07
0
[LLVMdev] Programmatically setting command line options?
...Paul Melis<llvm at assumetheposition.nl> wrote:
> Hello,
>
> Is there currently a way to set options, like -time-passes or -regalloc
> from C++? I looked at the code in lib/Support/CommandLine.cpp, but the
> stuff that comes closest to providing such functionality (mostly
> GetOptionInfo()) is marked static.
You can manipulate the command-line you pass to
llvm::cl::ParseCommandLineOptions; other than that, there isn't any
easy way to do it. Patches to expose functionality using an option
into the C++ API are generally welcome if they are clean.
In an ideal world, I guess we...
2008 May 30
0
[LLVMdev] Odd problem with command line options
...Error: Argument 'machine-licm' defined more than
once!
> ellsif: CommandLine Error: Argument 'machine-licm' defined more than once!
I recently had a similar problem when I wrote a new pass and built it into
opt. This error message is confusing because the code that prints it, in
GetOptionInfo() in lib/Support/CommandLine.cpp:
cerr << ProgramName << ": CommandLine Error: Argument '"
<< OptionNames[0] << "' defined more than once!\n";
should be printing OptionNames[i], not OptionNames[0].
(Once I had fixed this, i...
2007 Dec 23
3
[LLVMdev] Odd problem with command line options
I'm linking a program (my ellsif driver) that basically brings in most
of the LLVM stuff: bitcode reading, optimizations, linking, and target
code generation.
All of a sudden, I'm getting the following when I run:
[~/elsa/ellsif] dev% ./ellsif -v test/ofmt.i test/sieve.i -time-actions -O5
<premain>: CommandLine Error: Argument 'machine-licm' defined more than
once!
2008 Jul 06
2
[LLVMdev] Odd problem with command line options
...licm' defined more than
> once!
>> ellsif: CommandLine Error: Argument 'machine-licm' defined more than once!
>
> I recently had a similar problem when I wrote a new pass and built it into
> opt. This error message is confusing because the code that prints it, in
> GetOptionInfo() in lib/Support/CommandLine.cpp:
>
> cerr << ProgramName << ": CommandLine Error: Argument '"
> << OptionNames[0] << "' defined more than once!\n";
>
> should be printing OptionNames[i], not OptionNames[0].
&...
2013 Oct 03
0
[LLVMdev] libclang JIT frontend
...ts?
>From looking at the code and debugging, it appears that the call to Clang.ExecuteAction(*Act) the second time around causes llvm::cl::RegisteredOptionList (from lib/Support/CommandLine.cpp) to contain a huge (unbounded?) number of nodes. This becomes an issue when the list is processed in GetOptionInfo().
Any ideas?
Thanks for your help,
Jay
//=============================================================================
/******* test1.c *********/
int fib( int x )
{
if ( x == 0 )
return 0;
if ( x == 1 )
return 1;
return ( fib( x-1 ) + fib( x-2) )...