Displaying 7 results from an estimated 7 matches for "gausszhch".
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.ht...
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. MemoryDependenceAnalysis) in a
>> ModulePass, and then I used the method
>> "getAnalysis<MemoryDependenceAnalysis>(llvm::Function *)" described at
>> http://llvm.org/d...
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
2009 Sep 14
1
[LLVMdev] Can we use llvm-gcc to compile large project and generate IR?
Hi, all.
I have written a pass to do some inter-procedure work. Then I tried to
apply it to currently existing software. But I failed to compile most of
them using llvm-gcc.
When I run * ./configure CC=llvm-gcc CFLAGS="-emit-llvm -c"*, it
reports "*cannot run C compiled programs*" and so on and then exit.
( I use CFLAGS="-emit-llvm -c" to produce LLVM bitcode
2009 Jul 30
2
[LLVMdev] How to produce a "Intrinsic Function" call instruction?
Hi, all.
I have noticed that LLVM supports some Intrinsic Functions such as *"**
llvm.sadd.with.overflow"* described in
http://llvm.org/docs/LangRef.html#int_sadd_overflow. We can use these
functions and needn't define the function bodies.
For example, I can manually insert codes:
* %res = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %a, i32 %b)
%sum = extractvalue
2009 Sep 23
1
[LLVMdev] How to create shared library using llvm-ld
Hi, all.
I am using llvm-gcc to compile some softwares, and compile them with
CFLAGS="-emit-llvm" to gernerate bitcode IR. Then I have to replace normal
ld with llvm-ld.
Unfortunately, llvm-ld doesn't support -shared option which is used to
create a shared library. I've also noticed that llvm-ld supports an option
'-link-as-library' which is used to generate
2009 Sep 02
4
[LLVMdev] link-error: different visibilities
When I use llvm-2.5 to compile gnash which is a GNU flash movie player, some
errors appeared as follow:
llvm-ld: error: Cannot link in module
'../libcore/.libs/libgnashcore.a(movie_root.o)': Linking globals named
'_ZNKSt6vectorIN5gnash8geometry7Range2dIfEESaIS3_EE4sizeEv': symbols have
different visibilities!
Because the name is mangled, I can't find the exact position of