Displaying 20 results from an estimated 100000 matches similar to: "[LLVMdev] Linking an opt optimization pass to clang?"
2010 Mar 29
1
[LLVMdev] Online opt style code pass / profiling possible in LLVM JIT?
Hi
I am not sure if it is possible to do something similar to what the
LLVM pass framework offers (via the opt program) but in the JIT
instead (when running lli).
Is it possible to do any kind of online profiling (or optimization) of
dynamically compiler code similar to writing an opt style code pass
module? Or would I have to change a lot of stuff in the JIT?
Thanks
-Puyan
2010 Feb 21
1
[LLVMdev] Possibly using a broken version of GCC to build LLVM (file won't finish compiling).
>From a cached version of the Getting Started Guide, I have found:
"GCC 3.4.4 (CodeSourcery ARM 2005q3-2): this compiler miscompiles LLVM
when building with optimizations enabled. It appears to work with
"make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1" or build a debug build."
I'm trying that now.
-Puyan
On Sun, Feb 21, 2010 at 1:22 AM, Rajika Kumarasiri <rajika at
2010 Feb 17
1
[LLVMdev] Need help getting LLVM JIT running on ARM
Is this the configuration you would give for an iphone?
-Puyan
----- Original Message -----
From: "Jim Grosbach" <grosbach at apple.com>
To: "Puyan Lotfi" <puyan at gatech.edu>
Cc: llvmdev at cs.uiuc.edu
Sent: Wednesday, February 17, 2010 4:42:37 PM GMT -05:00 US/Canada Eastern
Subject: Re: [LLVMdev] Need help getting LLVM JIT running on ARM
Specifying --host,
2010 Feb 21
0
[LLVMdev] Possibly using a broken version of GCC to build LLVM (file won't finish compiling).
Puyan,
There is a doc on the document page which describe the list of broken GCCs.
You'll need to check it once the docs are online.
Rajika
On Sun, Feb 21, 2010 at 11:33 AM, Puyan Lotfi <puyan at gatech.edu> wrote:
> Hi
>
> Does there exist a list of relative compile times for source files in LLVM?
> I am doing a build for ARM on an actual ARM device, and
>
2010 Feb 17
0
[LLVMdev] Need help getting LLVM JIT running on ARM
Specifying --host, --build and --target should work. For example,
$ configure --host=arm-apple-darwin10 --build=i686-apple-darwin10 --target=arm-apple-darwin10 --enable-targets=arm
-Jim
On Feb 17, 2010, at 12:26 PM, Puyan Lotfi wrote:
> Does anyone know what I should be doing if I want to cross compile LLVM for the ARM architecture?
> I want to use the LLVM JIT on ARM for a class
2010 Feb 21
3
[LLVMdev] Possibly using a broken version of GCC to build LLVM (file won't finish compiling).
Hi
Does there exist a list of relative compile times for source files in LLVM?
I am doing a build for ARM on an actual ARM device, and
CodeGenDAGPatterns.cpp is taking a really long time to compile (it's been
like 20 minutes or more).
I don't even get an error. All the files before it compile pretty quickly
but this file in particular just won't finish.
The version of gcc I have on
2010 Feb 17
2
[LLVMdev] Need help getting LLVM JIT running on ARM
Does anyone know what I should be doing if I want to cross compile LLVM for
the ARM architecture?
I want to use the LLVM JIT on ARM for a class project this semester.
I have built and/or installed a few different gcc arm (arm-linux, and also
one that is arm-elf) toolchains, and have had trouble getting LLVM 2.6 to
configure and compile using the --host and --build switches of the config.
If there
2015 Aug 28
2
get llvm IR after a clang optimization pass.
Hi,
Id like to run clang with some optimization passes (-reassociate,
-simplifycfg, -dce
)
But in the end I need to dump the llvm IR (no link to assembly generation).
I didnt find any way to do that.
I found out that passes are run via opt, but opt generates bc code, and I
want IR.
Any help will be welcome
Thanks,
Régis
-------------- next part
2012 Oct 26
1
[LLVMdev] Passing an option to opt through clang/dragonegg
Dear Friends,
I need to pass an option to an llvm analysis pass through clang and
dragonegg, to llvm's opt. Right now opt takes the flag, but when I pass the
flag through clang with -mllvm, I get an error.
I am trying to figure out how other options are passed to llvm through
clang (as suggested in the mailing list). But if someone has more inputs on
how to do this (also with dragonegg), it
2015 Dec 02
3
Is there a way to pass Optimization passes to clang?
On Wed, Dec 2, 2015 at 10:39 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk
> wrote:
> On 2 Dec 2015, at 18:30, Phil Tomson <phil.a.tomson at gmail.com> wrote:
> >
> >> If you want to pass LLVM arguments to clang, then you must prefix them
> with -llvm (e.g. -mllvm -loops -mllvm lcssa).
> >
> >
> > I just tried this:
> > CFLAGS +=
2015 Dec 02
5
Is there a way to pass Optimization passes to clang?
0 down vote favorite
<http://stackoverflow.com/questions/34049511/how-to-pass-optimization-passes-to-clang#>
I'm trying to debug an issue for a new target where a testcase fails with
-O1 optimization and passes with -O0 optimization.
I got a list of optimization passes being performed when 'clang -O1' is
called like this:
llvm-as < /dev/null | opt -O1 -disable-output
2018 Jun 25
2
How to include a opt pass in clang driver
Hi Eli,
I have tried that:
static void registerMyPass(const PassManagerBuilder &,
llvm::legacy::PassManagerBase &PM) {
PM.add(new MyPass());
}
static RegisterStandardPasses
RegisterMyPass(PassManagerBuilder::EP_OptimizerLast,
registerMyPass);
It still couldn't find my pass.
Regards,
Soham Sinha
PhD Student,
2013 Oct 01
0
[LLVMdev] RFH: passing options from clang down to opt
You are calling the option -auto-profile in some places and
-fauto-profile in others. Maybe it is just a typo?
On 1 October 2013 15:31, Diego Novillo <dnovillo at google.com> wrote:
> I'm trying to add a new option to clang to enable my auto profile
> pass. I've added this to Options.td and Driver/Tools.cpp, but I'm not
> getting the option -auto-profile in cc1's
2018 Jun 25
2
How to include a opt pass in clang driver
Hello,
I have written a pass for the IR and I can run it with opt -load
lib/LLVMMyPass.so -mypass -myarguments -S -o output.ll < output.bc
I have registered my pass with the following code:
static RegisterPass<MyPass>
X("mypass", "MyPass Pass (with getAnalysisUsage implemented)");
How do I include the same pass in the clang driver. I tried running the
pass:
clang
2013 Oct 01
3
[LLVMdev] RFH: passing options from clang down to opt
I'm trying to add a new option to clang to enable my auto profile
pass. I've added this to Options.td and Driver/Tools.cpp, but I'm not
getting the option -auto-profile in cc1's invocation. I've checked
that the code to push -auto-profile is executed, but if use -v, I
don't see -auto-profile in the cc1 invocation.
Can anyone point me to some document that explains how to
2012 Mar 04
2
[LLVMdev] Passing arguments to opt via clang
I have tried to invoke a transformation/optimization pass using -mllvm,
without success. I might be missing something.
For example I have a shared/dynamic library which contains LLVM passes. I
used to invoke them with llvmc like this:
>>*llvmc mycode.c -o mycode.o -c -opt -Wo,=-load,libFoo.dylib,-Foo*
Can this style of optimization be executed using -mllvm argument?
Thx,
PMon
On Sun,
2010 Mar 18
0
[LLVMdev] How to link LLVMCore.a into a custom pass that is fed to opt
Hey all,
I need to use C bindings in a pass that I am authoring (specifically, I want
to use the OCaml bindings that are tied to the C bindings to author the
pass). However, this requires that I link in LLVMCore to provide said
bindings to my library. From what I've read, there is a known issue with
linking LLVMCore into a module that is fed to opt. Namely, you get the
following assertion:
2011 Nov 15
1
[LLVMdev] opt -O2 optimization passes
Hi all,
I would like to know which optimization passes are performed at -O2 by opt.
So I used following command:
llvm-as < /dev/null | opt -O2 -std-compile-opts -disable-output
-debug-pass=Arguments
I've got following output for LLVM opt 2.9:
Pass Arguments: -no-aa -tbaa -basicaa -simplifycfg -domtree -scalarrepl
-early-cse
Pass Arguments: -targetlibinfo -no-aa -tbaa -basicaa
2013 Jun 27
1
[LLVMdev] Passing arguments to opt via clang
what is the solution to pass opt arguments , non ordinary passes like :
*-std-link-opts* by clang ?
Dose clang invoke opt in normal compilation procedure even?
--
View this message in context: http://llvm.1065342.n5.nabble.com/Passing-arguments-to-opt-via-clang-tp3161p58920.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2012 Mar 04
0
[LLVMdev] Passing arguments to opt via clang
Hello
> For example I have a shared/dynamic library which contains LLVM passes. I
> used to invoke them with llvmc like this:
>>>llvmc mycode.c -o mycode.o -c -opt -Wo,=-load,libFoo.dylib,-Foo
> Can this style of optimization be executed using -mllvm argument?
No. You cannot add additional passes this way, only pass 'ordinary' arguments.
--
With best regards, Anton