Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] Manipulate order of optimizations in llvm-ld"
2006 Sep 18
0
[LLVMdev] Manipulate order of optimizations in llvm-ld
Hi Bram,
On Mon, 2006-09-18 at 17:27 +0200, Bram Adams wrote:
> Hi,
>
> I've written a couple of passes, and I intend to use them using llvm-ld
> (loading works fine).
That's good to hear :)
> However, I can't seem to figure out how to put
> them first, i.e. before all other optimizations (inlining,
> internalizing, ... should only kick in after my passes).
2006 Aug 20
3
[LLVMdev] Weird behavior of llvm-ld
Hi,
Op 20-aug-06, om 21:18 heeft Reid Spencer het volgende geschreven:
> I looked over your patch and it looks good. I applied a patch based on
> yours. The llvm-ld tool now uses the PluginLoader just like the opt
> tool. It will also run some cleanup passes after the loaded plugins
> run
> to ensure cruft is removed.
OK, thanks. Your patch seems to work, although I also get
2006 Aug 20
0
[LLVMdev] Weird behavior of llvm-ld
Do you have a verify option in your loaded module?
Reid.
On Sun, 2006-08-20 at 22:04 +0200, Bram Adams wrote:
> Hi,
>
> Op 20-aug-06, om 21:18 heeft Reid Spencer het volgende geschreven:
>
> > I looked over your patch and it looks good. I applied a patch based on
> > yours. The llvm-ld tool now uses the PluginLoader just like the opt
> > tool. It will also run
2006 Aug 20
2
[LLVMdev] Weird behavior of llvm-ld
Hi,
Op 20-aug-06, om 22:26 heeft Reid Spencer het volgende geschreven:
> Do you have a verify option in your loaded module?
What exactly do you mean by "verify option"? Anyway, I did a grep on
"verify" in my code, but found nothing.
Kind regards,
Bram Adams
GH-SEL, INTEC, Ghent University (Belgium)
2006 Aug 20
0
[LLVMdev] Weird behavior of llvm-ld
Yeah, it wasn't your problem but mine. Please update Optimize.cpp or
apply the recent patches to it. Should be fixed now.
Reid.
On Sun, 2006-08-20 at 22:59 +0200, Bram Adams wrote:
> Hi,
>
> Op 20-aug-06, om 22:26 heeft Reid Spencer het volgende geschreven:
>
> > Do you have a verify option in your loaded module?
>
> What exactly do you mean by "verify
2006 Aug 16
2
[LLVMdev] Weird behavior of llvm-ld
Hi,
I'm using LLVM 1.8 with the GCC4-frontend on a Slackware 10.2 box (GCC
3.3.6). When issuing the following command (line 14 in a script called
manual.sh):
llvm-ld -O1 *.trans -L${SOME_LIB_DIR} -L${SOME_OTHER_LIB_DIR}
-L${LLVM_FRONT}/lib -lSOME_LIB -lSOME_OTHER_LIB
-load=${MY_LIB_DIR}/opt1.so -load=${MY_LIB_DIR}/opt2.so
-debug-pass=Details -debug -o test
... I get the following
2009 May 11
2
[LLVMdev] Pass Manager hangs with CallGraph and LoopSimplify
Hello,
I have discovered a situation in which the pass manager will infinite
loop. The minimal test case is below this message. The required
structure of these passes is;
Before requires CallGraph
After requires LoopSimplify and Before
I can observe this through opt:
opt -load ./libBug.so -after input.bc -o output.bc
I built my copy of llvm from svn revision 68820 using gcc 4.1.2
Any
2006 Nov 15
0
[LLVMdev] 1.9 Prerelease Available for Testing
Hi,
Op 15-nov-06, om 03:26 heeft Tanya M. Lattner het volgende geschreven:
> I'm able to reproduce this if I skip doing a "make" and directly do a
> "make install" after configuring. I believe we require people to do
> a full
> build before attempting to install. So I don't think its really a bug.
> Could you try doing a make first and then install?
2008 Jul 09
2
[LLVMdev] Add RTLD_GLOBAL to dlopen
Hi,
Today, I've made the transition from LLVM 2.1 to 2.3. I invoke opt
with two dynamic libraries to "-load", the first of which contains
transformation passes and support code whereas the second one provides
extra passes which make use of the first library's support code. In
other words, the symbols loaded in for the first library should be
available when the second
2006 Aug 18
2
[LLVMdev] Weird behavior of llvm-ld
Hi,
Reid Spencer wrote:
>> That's interesting! So, one only needs to add a 2-arg function called
>> RunOptimizations to the module (can't check it right now)?
>>
>
> That is correct. That function and only that function will be called.
> What happens in that function is up to you :)
>
So, I tried this the last two days, but to no avail. I first
2006 Nov 15
4
[LLVMdev] 1.9 Prerelease Available for Testing
Hi,
There is a typo in $LLVM_SRC/Makefile.rules on line 750 where it says :
SharedLibKindMessage := "Lodable Module"
instead of
SharedLibKindMessage := "Loadable Module"
Op 15-nov-06, om 15:54 heeft Bram Adams het volgende geschreven:
> Didn't check
> LLVM's test suite.
Doing the simple LLVM-tests (on Slackware 10.2) gets:
=== Summary ===
2006 Aug 16
2
[LLVMdev] Weird behavior of llvm-ld
Hi,
Op 16-aug-06, om 18:59 heeft Reid Spencer het volgende geschreven:
>> llvm-ld: warning: Supposed library 'SOME_OTHER_LIB' isn't a library.
>
> The -l option is used to link libraries into the resulting executable.
> I'm hoping "SOME_OTHER_LIB" is not the actual name and you're just
> paraphrasing the actual command line. Note that native
2005 Sep 05
2
[LLVMdev] Pass is not automatically registered
I am not sure if my problem is similar to:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2003-December/000715.html
It seems that the constructor of the static global pass object isn't called:
lib/CodeGen/DependenceAnalyzer.cpp:
static RegisterAnalysis<DependenceAnalyzer> X("depana", "Dependence Analysis");
I traced into struct RegisterAnalysis ctor, but my pass
2006 Oct 02
3
[LLVMdev] Extracting all BasicBlocks of a Function into new Function
Hi,
Op 2-okt-06, om 21:35 heeft Chris Lattner het volgende geschreven:
> I think the easiest way to do this is to do the 'complement' as you
> describe, but specially handle the varargs case. Basically you
> need to
> call va_start in the original function, and pass the valist pointer
> down.
> This shouldn't be too hard.
OK.
I've been rethinking my use
2007 May 29
4
[LLVMdev] Code generation issues
Hi,
Today I managed to link ioquake3, but generating a binary does not
work yet.
1) On OSX, I get:
Error: Code generator does not support intrinsic function
'llvm.ppc.altivec.lvsl'!
when I do: llc file.bc -march=c -o file.c
2) On Linux X86, llc does not give any problem, but I get this while
compiling the generated .c file:
error: unknown register name 'S' in
2006 Oct 05
3
[LLVMdev] Extracting all BasicBlocks of a Function into new Function
Hi,
Chris Lattner wrote:
> All the non-vastart calls can be anywhere. va_end in particular codegens
> to a noop on all targets llvm currently supports, fwiw.
>
Things go well, except for the following (pathological?) C program:
int va_double_sum(int count,...){
int i,sum=0;
va_list ap;
va_start(ap,count);
for(i=0;i<count;i++){
sum+=va_arg(ap,int);
}
va_end(ap);
2016 Jan 22
4
LLVM - getAnalysisUsage()
Hi,
I am using llvm-3.8 for my project. Following is my getAnalysisUsage() method:
virtual void getAnalysisUsage(AnalysisUsage &AU) const override
{
AU.setPreservesAll();
AU.addRequired<X>();
AU.addRequired<Y>();
AU.addRequired<Z>();
}
Now, if I call getAnalysis<X>(*F), instead of invoking just the X
pass, all the passes, i.e., X, Y and Z are being
2007 May 18
2
[LLVMdev] Antw.: 2.0 Pre-release tarballs online
Hi,
Op 18-mei-07, om 10:10 heeft Tanya M. Lattner het volgende geschreven:
>> On Slackware 10.2 (GCC 3.3.6), I got an error during a debug build
>> with the header files using uintptr_t (not recognised as a type).
>> Putting "#include <stdint.h>" in include/llvm/BasicBlock.h (llvm)
>> and in "include/llvm/ValueSymbolTable.h" (frontend)
2006 Sep 21
2
[LLVMdev] Cloning Function-objects
Hi,
What's the best way to clone a Function (deep copy, not shallow)?
Apparently only Instruction-classes feature a clone()-method, and
there is no dedicated copy constructor/operator= for Function either.
Kind regards,
Bram Adams
GH-SEL, INTEC, Ghent University
2009 May 11
0
[LLVMdev] Pass Manager hangs with CallGraph and LoopSimplify
See http://llvm.org/docs/GettingStarted.html#brokengcc and then try building with something OTHER than GCC 4.1.2 .
----- Original Message ----
> From: Nick Johnson <npjohnso at cs.princeton.edu>
> To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
> Sent: Monday, May 11, 2009 3:01:12 PM
> Subject: [LLVMdev] Pass Manager hangs with CallGraph and LoopSimplify
>