similar to: [LLVMdev] Utility function to identify user defined function

Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] Utility function to identify user defined function"

2013 Jan 22
0
[LLVMdev] Utility function to identify user defined function
"Hassan, Ahmad" <ahmad.hassan at sap.com> writes: > I would like to ask if LLVM provides a utility function like > 'isMallocCall' to check if the 'call' instruction is calling some > 'foo' user defined function? > > If there is no such utility function then I am thinking to do this in > the following way: > > bool testFoo(CallInst
2013 Jan 17
4
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi All, I am migrating a build system of an existing project from 'Object files' based executable generation to 'LLVM Bitcode' files based exe generation and applying OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let me know if this is the right procedure or is there any other easy way of doing it. I need to modify 'Makefile' accordingly. I
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Ahmad, If the Makefile contains only this command, then it is not worth spending time on GoldPlugin. If you are building a large project, then it will be simpler to use GoldPlugin. The steps you are using seem right. You can possibly combine the last two steps (3&4) using only 1 clang command. clang -g -O2 -o .libs/mergedexe .libs/mergedbc.bc -pthread -Wl,--export-dynamic
2010 May 28
1
Does Sweave run in the global environment ?
Hello It seems that sweave always runs in the global environment. I want to run sweave from within a function, and pass a variable into sweave, however when I do this, sweave doesn't see the variable. Here's my example test_sweave.Rnw file |% \documentclass[a4paper]{article} \usepackage[OT1]{fontenc} \usepackage{Sweave} \begin{document} \title{Test Sweave Document} \author{Paul
2013 Feb 22
1
[LLVMdev] llvm-ar llvm-link
Hi Ahmad, Yes, merging works good. However, my problem is like this - I have a C library which consists of 1000's of functions spread through various files. The functions do not have dependency amoung each other. I want to link only relavant files( files which have functions called from my application). Since ar has a global symbol table, I believe it should be faster to look for a symol in
2013 Jan 17
1
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Duncan, > 4.gcc -g -O2 -o .libs/mergedexe .libs/mergedbc.s -pthread > -Wl,--export-dynamic .libs/lib1.a -lssl -lcrypto -ldl -pthread .libs/lib2.so >if you pass -O4 rather than -O2 to clang I think it will in essence do this all >for you already. It might even do the link time optimization for you at -O2 >even, I'm not sure. No, if I use clang for producing
2013 Feb 21
0
[LLVMdev] llvm-ar llvm-link
Hi Ankur, Why do you need archive in this case? The other way of doing this is to merge all bitcode files into single file: $ clang -c -emit-llvm abc.c -o abc.bc $ clang -c -emit-llvm bcd.c -o bcd.bc llvm-link bcd.bc abc.bc -o merged.bc Cheers, Ahmad From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of ankur deshwal Sent: 21 February 2013 17:54 To:
2013 Feb 21
2
[LLVMdev] llvm-ar llvm-link
Hi, I tried to build an llvm archive and link it against an llvm bc file. However, it fails. Following is the procedure I followed ( abc.c is file which calls a function whose definition is present in bcd.c) $ clang -c -emit-llvm abc.c $ clang -c -emit-llvm bcd.c $ llvm-ar cr bsd.ar bcd.o $ llvm-link abc.o bsd.ar llvm-link: bsd.ar:1:2: error: expected integer !<arch> ^ llvm-link:
2012 Jun 27
2
a problem of approach
Dear R-help list, Part of a program I wrote seem to take a significant amount of time, therefore I am looking for an alternative approach. In order to explain what is does: - the input is a sorted vector of integer numbers - some higher numbers may be derived (using a mathematical formula) from lower numbers, therefore they should be eliminated - at the end, the vector should contain only
2010 Feb 09
1
Flashing SLOF on IBM JS20 (Thamesblue supercomputer)
Hi, We are trying to set up XEN testbed on Thamesblue Supercomputer which has IBM JS20 Blades. I compiled the SLOF firmware from the source on one of the blade. The compilation went smooth and generated the following binaries *boot_rom.bin boot_rom_bimini.bin* When we try to flash boot_rom.bin firmware binary then we get the following error: * update_flash: RTAS: validate() Invalid candidate
2010 Feb 09
1
Flashing SLOF on IBM JS20 (Thamesblue supercomputer)
Hi, We are trying to set up XEN testbed on Thamesblue Supercomputer which has IBM JS20 Blades. I compiled the SLOF firmware from the source on one of the blade. The compilation went smooth and generated the following binaries *boot_rom.bin boot_rom_bimini.bin* When we try to flash boot_rom.bin firmware binary then we get the following error: * update_flash: RTAS: validate() Invalid candidate
2013 Jan 03
2
[LLVMdev] Opt error
Hi Team, I am migrating one of the Pass that was written for llvm2.2 or older to llvm3.1. The code snippet looks like the following: Constant *func; void add( Module *M) { func = M->getOrInsertFunction("func", Type::getVoidTy(M->getContext()), NULL); } virtual bool runOnModule(Module &M) { add (&M); for(Module::iterator F = M.begin(), E = M.end(); F !=
2010 Feb 05
2
Para_virtualised Kernel for running XEN-3.2 on Thamesblue Supercomputer
Hi, We are trying to setup XEN testbed on Thamesblue supercomputer which has IBM JS2X blade servers. I know that XEN 3.2 was the last release which supports PowerPC. We want to give it a try now. We are running SLES 10.2 and Gentoo on these blades. Can anyone please tell me which Pv_ops kernel should I use for setting up XEN 3.2 on powerpc? Thanks. Best Regards, Hassan
2010 Feb 05
2
Para_virtualised Kernel for running XEN-3.2 on Thamesblue Supercomputer
Hi, We are trying to setup XEN testbed on Thamesblue supercomputer which has IBM JS2X blade servers. I know that XEN 3.2 was the last release which supports PowerPC. We want to give it a try now. We are running SLES 10.2 and Gentoo on these blades. Can anyone please tell me which Pv_ops kernel should I use for setting up XEN 3.2 on powerpc? Thanks. Best Regards, Hassan
2013 Jan 03
0
[LLVMdev] Opt error
Hi Ahmad, On 03/01/13 16:26, Hassan, Ahmad wrote: > Hi Team, > > I am migrating one of the Pass that was written for llvm2.2 or older to llvm3.1. > The code snippet looks like the following: > > Constant *func; > > void add( Module *M) { > > func = M->getOrInsertFunction("func", Type::getVoidTy(M->getContext()), NULL); this function has no
2013 Nov 12
7
Hook into Exception Chain
Hi there, I''m using Log4r in my rails projects. On log.error an email is sent using the EmailOutputter. I know changed the EmailOutputter to include a global var in the subject (MDC) since the subject is normally static. I want to set this var to the exception message, so it is sent as the subject. Can anyone tell me how to do this in rails? Basically: raise e or some other cause
2009 Nov 20
3
Proper usage of identify(label)
I was reading this page: http://api.rubyonrails.org/classes/Fixtures.html#M000326 and was trying to get hashed labels working. However, calling it from within a unit test results in this error: def test_defaults_to_disabled identify(''one'') end 2) Error: test_defaults_to_disabled(AdminTest): NoMethodError: undefined method `identify'' for
2005 May 08
3
1.0-test69
http://dovecot.org/test/ - Several mbox fixes, upgrade recommended for test68 mbox users - Possibly fixes some IMAP hangs where Dovecot just stopped replying - Fixed delay-newmail workaround. It was badly broken before. And somewhat off topic advertisement: I got a bit distracted from Dovecot a week ago when a guy started mailing me about wanting to write an irssi2 client as a project to
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Ahmad, On 17/01/13 14:56, Hassan, Ahmad wrote: > Hi All, > > I am migrating a build system of an existing project from ‘Object files’ based > executable generation to ‘LLVM Bitcode’ files based exe generation and applying > OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let > me know if this is the right procedure or is there any other easy way
2012 Apr 10
4
[LLVMdev] How to explain this weird phenomenon????????
My friends, I ran a function pass on a .bc file, intending to insert a CallInst to my self-made check function. The compilation is successful. BUT after I ran that pass on the .bc file, the size of the file didn't get any bigger!! Does this mean my instrumentation work failed?? BTW the opt command I use is "opt -load ../../../Debug+Asserts/lib/Hello.so -hello <hello.bc> -o