Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] ModulePass that requires FunctionPass"
2006 Jul 06
0
[LLVMdev] A job advertisement for LLVM developers
AutoESL is a high-tech startup company providing innovative platform-based
communication-centric SystemC/C-to-RTL synthesis technologies (see more in the
"About Us" section). Currently AutoESL has several engineering positions
open in its headquarter in Los Angeles, California and its R&D center
in Beijing,
China. Please e-mail your resume to recruiting at autoesl.com for immediate
2010 Mar 16
3
[LLVMdev] Undefined symbol in Hello pass
Hello,
I just built a virgin ToT (r98634) for release on vanilla Snow
Leopard. It seems that the Hello pass doesn't want to load because of
undefined symbols:
builddir% ../llvm/configure --prefix=$(PWD)/../installdir --enable-optimized
builddir% make
builddir% make install && cd ../installdir
installdir% bin/opt -load lib/libLLVMHello.dylib
Error opening
2010 Dec 02
1
[LLVMdev] Undefined symbol in Hello pass
Hi all,
I recently experienced the same issue as below with LLVM 2.8 on Mac OS
10.5.8. I can load the pass with the debug version of opt, but not the
optimized version.
Does anyone know what the problem is or have any suggestions for debugging this?
My install went fine except for some failures during make check
(Unexpected Failures: 92). All failures were in one of the following:
2009 Dec 18
1
[LLVMdev] Compiling a raw binary with llvm/clang
$ clang -ffunction-sections -fdata-sections -Os -nostartfiles -c -o hello.o
hello.c
$ clang -ffunction-sections -fdata-sections -Os -nostartfiles -c -o test.o
test.c
$ llvm-ld -s -o hello2 hello.o
$ llc hello2.bc -o hello3
$ ld -o hello_B hello3 --oformat binary
ld:hello3: file format not recognized; treating as linker script
ld:hello3:1: syntax error
I am guessing that is what you meant by the
2010 Aug 05
0
[LLVMdev] AutoESL is hiring
AutoESL (www.autoesl.com) is the leading provider of high-level synthesis
for FPGAs and ASICs.
The company was founded in 2006 based on advanced technology that was
nurtured, developed, and exclusively licensed from UCLA.
AutoESL has now deployed this solution at many leading edge system and
semiconductor companies. (see more in the "About Us" section).
Currently AutoESL has several
2010 May 21
1
[LLVMdev] Hello example plugin has unresolved symbol in llvm 2.7
I built llvm-2.7 from source on FreeBSD-i386 with:
./configure --prefix=/opt && gmake
It builds fine, but the Hello plugin fails to load with an unresolved symbol.
$ opt -load /opt/lib/libLLVMHello.so -help
Error opening '/opt/lib/libLLVMHello.so': /opt/lib/libLLVMHello.so: Undefined symbol "_ZNK4llvm4Pass5printERNS_11raw_ostreamEPKNS_6ModuleE"
-load
2011 May 13
4
[LLVMdev] Fail when building llvm2.9 using MinGW64
I was building llvm2.9 using MinGW64 on windows, msys was 32 bit so I
specified --host option for a cross compiling. Following are my configure
options:
../llvm2.9/configure --prefix=/home/AutoESL/llvm-obj
--host=x86_64-w64-mingw32
--disable-multilib
The error:
make[1]: Entering directory `/home/AutoESL/llvm-obj/lib/VMCore'
make[1]: ***
2006 Oct 08
1
[LLVMdev] modulepass requiring a functionpass
I have a ModulePass, which we'll call MP, that generates a dependency
graph for an entire program. I want MP to require the
UnifyFunctionExitNodes pass, which is a FunctionPass. Since its not
possible to make a ModulePass depend on a FunctionPass, is my only
choice to make MP a FunctionPass in which the runOnFunction() routine
does nothing, and the doFinalization routine does all the
2007 Apr 16
1
[LLVMdev] ModulePass that requires FunctionPass
Hi All,
I've installed pass manager changes that allow ModulePass to require
FunctionPass. Try it, and let me know if you run into errors/bugs.
Thanks,
-
Devang
2007 Apr 26
0
[LLVMdev] ModulePass that requires FunctionPass
On Apr 25, 2007, at 4:53 PM, Zhiru Zhang wrote:
> Hi Devang,
>
> You recently mentioned that the pass manager now allows a ModulePass
> to require a FunctionPass. I just tried it but ran into errors. Could
> you please take a look to see if I did anything wrong? Thanks!
I can reproduce this crash. Please file bugzilla PR and I'll fix this
soon.
-
Devang
2008 Oct 28
1
[LLVMdev] Requiring a ModulePass to be run from a FunctionPass
Hi,
I have a FunctionPass that requires a ModulePass using addRequiredById().
When I start opt it infloops somewhere in PMDataManager::findAnalysisPass.
Should I open a bug, or is this a known issue (i.e. I am doing something
wrong)? Is there a workaround?
My modulepass just assigns unique numbers to basicblocks (like
StableBasicBlockNumbering, but unique per Module)
I could do that with a
2009 Aug 10
0
[LLVMdev] How to use a FunctionPass in a ModulePass?
On Mon, Aug 10, 2009 at 3:35 AM, gauss<gausszhch at gmail.com> wrote:
> Hi, all:
>
> I wanted to use a FunctionPass (e.g. MemoryDependenceAnalysis) in a
> ModulePass, and then I used the method
> "getAnalysis<MemoryDependenceAnalysis>(llvm::Function *)" described at
> http://llvm.org/docs/WritingAnLLVMPass.html#ModulePass to get the
> FunctionPass. But ,
2009 Aug 11
1
[LLVMdev] How to use a FunctionPass in a ModulePass?
Hi, Devang. Thank you for your reply.
But in my case, my ModulePass requires another FunctionPass (e.g.
MemoryDependenceAnalysis) rather than the opposite direction. Is it also
limited?
-
gauss
Devang Patel-2 wrote:
>
> On Mon, Aug 10, 2009 at 3:35 AM, gauss<gausszhch at gmail.com> wrote:
>> Hi, all:
>>
>> I wanted to use a FunctionPass (e.g.
2013 Oct 31
0
[LLVMdev] Get Different Result for ScalarEvolution through ModulePass and FunctionPass
Hi there,
I write two pass, a module pass, named "MP", and a FunctionPass, "FP".
Then I use this pass to print the scalar evolution information in two ways:
1.employ FP to process function directly
2.call MP, iterate on functions, then call FP on them
sample code is that:
*MP:*
*bool runOnModule(Module &M)*
*{*
*for(Module::iterator itr = M.begin(); itr != M.end();
2011 May 30
1
[LLVMdev] about writing a functionpass requiring a modulepass
---------- Forwarded message ----------
From: Qingan Li <ww345ww at gmail.com>
Date: 2011/5/30
Subject:
To: llvmdev at cs.uiuc.edu
Hi,
I wrote an analysis pass, myPass, inherited from both ModulePass and
ProfileInfo, and this pass requires the CallGraph, i.e.,
* class myPass : public ModulePass, public ProfileInfo { ...};*
* void myPass::getAnalysisUsage(AnalysisUsage &AU) const
2010 Nov 15
1
[LLVMdev] --enable-optimized breaks pass registration for dynamically loadable passes?
Hello all,
Is it well known that building LLVM with --enable-optimized causes
RegisterPass calls to be removed from dynamically loadable libraries
(i.e., those built with LOADABLE_MODULE=1)?
For example, here's what happens to the Hello pass (ToT on Darwin,
both with and without --enable-optimized):
$ pwd
/Users/ransford/llvm/lib/Transforms/Hello
$ nm -j Release+Asserts/Hello.o | c++filt -p
2009 Aug 10
2
[LLVMdev] How to use a FunctionPass in a ModulePass?
Hi, all:
I wanted to use a FunctionPass (e.g. *MemoryDependenceAnalysis*) in a
ModulePass, and then I used the method "getAnalysis<*
MemoryDependenceAnalysis*>(llvm::Function *)" described at
http://llvm.org/docs/WritingAnLLVMPass.html#ModulePass to get the
FunctionPass. But , it still crashed when I invoked this pass in tool 'opt'.
However, if I change my pass to
2011 May 03
0
[LLVMdev] Loop-Unroll optimization
Even after all the sequence of commands below bit-code is not showing any
effect of loop-unrolling
*manish at manish:~/Test2$ llvm-gcc-4.2 -O2 -emit-llvm Hello.c -c -o Hello.bc*
*manish at manish:~/Test2$ opt-2.8 -loops Hello.bc -o Hello1.bc*
*manish at manish:~/Test2$ opt-2.8 -loopsimplify Hello1.bc -o Hello2.bc*
*manish at manish:~/Test2$ opt-2.8 -indvars Hello2.bc -o Hello3.bc*
*manish at
2011 May 04
1
[LLVMdev] Loop-Unroll optimization
1. You should run the passes in the same opt command, for passes like loops
which is an analysis pass provides results to the following passes.
2. You can pass a -debug flag to opt to see the some debugging info.
3. I tried this
opt -mem2reg -loops -loopsimplify -loop-unroll -unroll-count=3 -debug
loop.o -o tt.bc
and got this message.
Loop Size = 14
Can't unroll; loop not terminated by
2011 May 15
0
[LLVMdev] Fail when building llvm2.9 using MinGW64
Chen,
2011/5/13 陈晓宇 <xychen0921 at gmail.com>:
> ../llvm2.9/configure --prefix=/home/AutoESL/llvm-obj
> --host=x86_64-w64-mingw32
> --disable-multilib
Please try with "--build=x86_64-w64-mingw32", not "--host".
If you would still have any troubles, make sure your
x86_64-w64-g++.exe can generate correct