Displaying 20 results from an estimated 21 matches for "myopts".
Did you mean:
myopt
2008 Oct 16
2
[LLVMdev] Requiring a pass to run before/after a pass? (Adding PHIs and updating uses)
Is there a simple way to require a pass, e.g., Reg2Mem/Mem2Reg, to run
before/after my transformation pass? Or do I do something like:
struct myOpt {
myOpt() {
mBefore = createDemoteRegisterToMemoryPass();
mAfter = createPromoteMemoryToRegisterPass();
}
getAnalysisUsage(AU) {
AU.addRequired(my stuff);
mBefore.getAnalysisUsage(AU);
mAfter.getAnalysisUsage(AU);
}
2011 Nov 10
3
optim seems to be finding a local minimum
Hello!
I am trying to create an R optimization routine for a task that's
currently being done using Excel (lots of tables, formulas, and
Solver).
However, otpim seems to be finding a local minimum.
Example data, functions, and comparison with the solution found in
Excel are below.
I am not experienced in optimizations so thanks a lot for your advice!
Dimitri
### 2 Inputs:
2008 Aug 27
1
RCurl: using netrc with curlPerform
...m function I get an error
saying that the curl option is not recognized. I have tried 3 different
ways of instructing the curlPerform function to use the .netrc file (in
the .opts, curl handle and the ... argument) but got the same error
message each time.
# Failed attempt using .opts construct
myopts <-curlOptions(netrc=1)
curlPerform("http://www.omegahat.org/RCurl/testPassword/index.html",
.opts=myopts)
# Failed attempt using curl handle
handle <- getCurlHandle(netrc=1)
curlPerform("http://www.omegahat.org/RCurl/testPassword/index.html",
curl=handle)
# Failed atte...
2008 Oct 16
0
[LLVMdev] Requiring a pass to run before/after a pass? (Adding PHIs and updating uses)
On Oct 16, 2008, at 8:29 AM, Edward Lee wrote:
> Is there a simple way to require a pass, e.g., Reg2Mem/Mem2Reg, to
> run before/after my transformation pass? Or do I do something like:
One simplest way is to handle this is to add these passes around your
pass in the pass manager.
pm.add(Reg2Mem)
pm.add(MyPass)
pm.add(Mem2Reg)
>
>
> struct myOpt {
> myOpt() {
>
2016 Dec 13
0
Enabling statistics in release builds / static constructors
> On Dec 13, 2016, at 1:22 PM, Matthias Braun via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>
>> On Dec 13, 2016, at 12:56 PM, Reid Kleckner <rnk at google.com> wrote:
>>
>> Given that LLVM has so many auto-registration systems (cl::opt, target registry, pass registry, statistics, I'm sure there's more), maybe we should spend the time to build
2016 Dec 13
3
Enabling statistics in release builds / static constructors
> On Dec 13, 2016, at 12:56 PM, Reid Kleckner <rnk at google.com> wrote:
>
> Given that LLVM has so many auto-registration systems (cl::opt, target registry, pass registry, statistics, I'm sure there's more), maybe we should spend the time to build an auto-registration system that doesn't involve static constructors?
I would volunteer to do the work, however this
2016 Dec 13
2
Enabling statistics in release builds / static constructors
> On Dec 13, 2016, at 3:23 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>>
>> On Dec 13, 2016, at 1:22 PM, Matthias Braun via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>>
>>> On Dec 13, 2016, at 12:56 PM, Reid Kleckner <rnk at google.com> wrote:
>>>
>>> Given that LLVM has so many auto-registration systems
2007 Oct 29
0
[LLVMdev] User-specified JIT passes
On Oct 28, 2007, at 10:38 PM, Warren Armstrong wrote:
> Greetings,
>
> I have a plan to use LLVM to undertake runtime optimisation of
> computational chemistry programs.
Ok.
> As part of this, I'd like to be able
> to invoke lli and pass it a list of passes to run, in the manner of
> opt. For example:
>
>> lli -load=llvm/mem_trace_pass/bin/lib/hello.so -hello
2007 Oct 29
2
[LLVMdev] User-specified JIT passes
Greetings,
I have a plan to use LLVM to undertake runtime optimisation of
computational chemistry programs. As part of this, I'd like to be able
to invoke lli and pass it a list of passes to run, in the manner of
opt. For example:
> lli -load=llvm/mem_trace_pass/bin/lib/hello.so -hello ./my_bitcode.bc
The current implementation of lli (updated from SVN as of three nights
ago)
2016 Dec 13
0
Enabling statistics in release builds / static constructors
Given that LLVM has so many auto-registration systems (cl::opt, target
registry, pass registry, statistics, I'm sure there's more), maybe we
should spend the time to build an auto-registration system that doesn't
involve static constructors?
It needs custom code for every supported object file format, and is hard to
get right when DSOs are involved, but in the long run it's
2011 Jun 01
2
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
Thanks for the reply! Unfortunately, that seems to have the same
effect as setting llvm::TimePassesIsEnabled myself, and all my same
problems still apply as the TimingInfo's destructor (PassManager.cpp)
is still never called. Running it in the debugger shows that
TimerGroup's removeTimer method is never called, nor is it's
destructor (but it's constructor is).
On Wed, Jun 1, 2011
2011 Jun 01
0
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
I got it working with this:
int argc = 2;
const char *argv[2] = {"myopt", "-time-passes"};
cl::ParseCommandLineOptions(argc, (char **)argv, "my optimizer");
On 06/01/2011 01:19 PM, Michael Ilseman wrote:
> I have some PassManagers, and I would like to output timing data for
> how long each pass takes to execute with a separate
2011 Jun 01
0
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
Oh, you probably also need to create a static llvm_shutdown_obj.
On 06/01/2011 02:19 PM, Michael Ilseman wrote:
> Thanks for the reply! Unfortunately, that seems to have the same
> effect as setting llvm::TimePassesIsEnabled myself, and all my same
> problems still apply as the TimingInfo's destructor (PassManager.cpp)
> is still never called. Running it in the debugger shows that
2011 Jun 01
2
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
I have some PassManagers, and I would like to output timing data for
how long each pass takes to execute with a separate application using
the API, rather than through an llvm tool. Unfortunately, I'm having
trouble seeing how to use the existing facilities without using opt.
Setting llvm::TimePassesIsEnabled before creating the PassManagers
doesn't seem to output anything, though it is
2016 Dec 13
0
Enabling statistics in release builds / static constructors
> On Dec 13, 2016, at 3:27 PM, Matthias Braun <mbraun at apple.com> wrote:
>
>>
>> On Dec 13, 2016, at 3:23 PM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote:
>>
>>>
>>> On Dec 13, 2016, at 1:22 PM, Matthias Braun via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>>
2006 Mar 07
17
[UNDER CONSTRUCTION] YAC? (Yet Another Capistrano)
My needs are far more modest than Capistrano''s capabilities. Also, when
working in a shared hosting environment, the Capistrano model can be
outside the capabilities allowed by the Web host.
I simply need to push selected directories (on a changed-file basis) out
to a server. I have about 80% of the code written to do this (I''m
considering YAC for the name, with a nod to
2013 Sep 17
0
[LLVMdev] [RFC] Internal command line options should not be statically initialized.
Hey Andy
> One easy pattern to follow is to register the option during pass initialization with all the convenient flags and parameters, but refer to a globally defined option storage that enforces the singleton and provides visibility. As long as pass initialization happens before parseCommandLine, usage should be consistent.
>
> Strawman:
>
> cl::optval<bool> MyOption; //
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with
Prototype?
Thanks,
mark
2016 Aug 31
3
llvm::cl::opt and enums
I was adding a new option for our backend, and because of the nature of the
option I wanted to use an 'enum', something like:
enum Direction {
left,
right,
up,
down
};
cl:opt<Direction> myOpt("option-switch", cl::init(up), cl::desc("what it
does"), cl::Hidden);
This bit is fine, but then I wanted to change it on the command-line to
1997 May 22
2
R-alpha: options(..) vs. .Options // Re(1i) = 2.4976e-307
The .Options
vector had been introduced a while ago after my suggestion
(see Ross's E-mail below).
.Options$digits is used be default in several print methods (eg print.lm),
however, deparse(.) e.g., uses options()$width, and not .Options$width.
Another problem is that .Options
is still not in the documentation (on-line help).
Before one could add it there, we'd need ``the