Displaying 20 results from an estimated 600 matches similar to: "[LLVMdev] Inserting a function call into bitcode"
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
Have you tried running the verifier after ConditionProfile runs? Just
add it to the pass manager to run right afterwards and see what it picks up.
Nick
Nehal Gandhi wrote:
>
>
> Hi All,
>
> I am trying to write code for simple instrumentation. What I want to do
> is to insert a call to an external function for result of each
> conditional branch instruction. This external
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
On Thu, Jun 3, 2010 at 9:43 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
> Hi All,
>
>
>
> I am trying to write code for simple instrumentation. What I want to do is
> to insert a call to an external function for result of each conditional
> branch instruction. This external function simply print true or false based
> on the result of condition. The modified code is
2010 Jun 04
3
[LLVMdev] Inserting a function call into bitcode
Hi Nick
I am not quite sure what you meant by verifier. I checked online documents
and found that there is a function verifyAnalysis() in Pass but it is empty.
So do you suggest implementing that function? If it is the case, what should
I look while implementing that function? Or something else altogether?
Thanks,
Nehal.
-----Original Message-----
From: Nick Lewycky [mailto:nicholas at mxc.ca]
2010 Jun 05
0
[LLVMdev] Inserting a function call into bitcode
Nehal Gandhi wrote:
> Hi Nick
>
> I am not quite sure what you meant by verifier. I checked online documents
> and found that there is a function verifyAnalysis() in Pass but it is empty.
> So do you suggest implementing that function? If it is the case, what should
> I look while implementing that function? Or something else altogether?
I'm assuming you have a PassManager
2004 Dec 21
3
[LLVMdev] Help with code
Hi,
I have this call instruction to printf inserted which is causing
an assertion failure. Any pointers to where I am wrong :
Code Dump :
Function *printFn=M.getNamedFunction(std::string("printf"));
Constant *str=ConstantArray::get("Value : %d\n");
std::vector<Value *> Args(2);
std::vector<Constant *> GEPIndices(2);
2004 Dec 21
0
[LLVMdev] Help with code
On Tue, Dec 21, 2004 at 03:45:33PM -0700, Sriraman Tallam wrote:
> I have this call instruction to printf inserted which is causing
> an assertion failure. Any pointers to where I am wrong :
>
> Function *printFn=M.getNamedFunction(std::string("printf"));
std::string() is unnecessary here as it's implicit.
> Constant *str=ConstantArray::get("Value :
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
Hi Eli,
I have attached a tar file containing Pass (ConditionPass.cpp), External
function (PrintRes.cpp) and test program (try.c). I use command chain as
describe in previous mail.
Thanks,
Nehal.
-----Original Message-----
From: Eli Friedman [mailto:eli.friedman at gmail.com]
Sent: Friday, June 04, 2010 3:39 AM
To: Nehal Gandhi
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Inserting a
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
On Thu, Jun 3, 2010 at 10:45 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
>> Hi Eli,
>>
>> Thanks for that. Rookie mistake on my side. It solves the linking issue.
>> However, it was not the main problem. The problem is when I execute the
>> linked file ( modified bitcode + file containing the function), I get an
>> assertion error - Assertion `Addr
2004 Dec 21
3
[LLVMdev] Help with code
Constant *strcon==ConstantArray::get("Value : %d\n");
Sorry Typo.
On Tue, 21 Dec 2004, Misha Brukman wrote:
> On Tue, Dec 21, 2004 at 03:45:33PM -0700, Sriraman Tallam wrote:
> > I have this call instruction to printf inserted which is causing
> > an assertion failure. Any pointers to where I am wrong :
> >
> > Function
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
On Fri, Jun 4, 2010 at 12:09 AM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
> On Thu, Jun 3, 2010 at 10:45 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
>>> Hi Eli,
>>>
>>> Thanks for that. Rookie mistake on my side. It solves the linking issue.
>>> However, it was not the main problem. The problem is when I execute the
>>> linked file (
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
On Fri, Jun 4, 2010 at 1:09 AM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
> Hi Eli,
>
> I have attached a tar file containing Pass (ConditionPass.cpp), External
> function (PrintRes.cpp) and test program (try.c). I use command chain as
> describe in previous mail.
Can you just attach the final program.bc you pass to lli? I don't
know how to build a plugin off the top of
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
Hi Eli,
Thanks for that. Rookie mistake on my side. It solves the linking issue.
However, it was not the main problem. The problem is when I execute the
linked file ( modified bitcode + file containing the function), I get an
assertion error - Assertion `Addr && "Code generation didn't add function to
GlobalAddress table!"' failed.
So my main concern - is that a
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
On Thu, Jun 3, 2010 at 10:45 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
> Hi Eli,
>
>
>
> Thanks for that. Rookie mistake on my side. It solves the linking issue.
> However, it was not the main problem. The problem is when I execute the
> linked file ( modified bitcode + file containing the function), I get an
> assertion error - Assertion `Addr &&
2006 Dec 15
6
Samba Configuration on Linux
Hi All
I am trying configuring samba on my linux machine. Below is the smb.conf
file. After starting the samba services (smbd and nmbd), i am not able
to access the samba exported folder from my network.
[global]
workgroup = TEST1
hosts allow = 10.2. 127.
log file = /var/log/samba/%m.log
max log size = 500
security = USER
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
username
2010 Jun 04
1
[LLVMdev] Inserting a function call into bitcode
Here you go.
-----Original Message-----
From: Eli Friedman [mailto:eli.friedman at gmail.com]
Sent: Friday, June 04, 2010 7:42 AM
To: Nehal Gandhi
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Inserting a function call into bitcode
On Fri, Jun 4, 2010 at 1:09 AM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
> Hi Eli,
>
> I have attached a tar file containing Pass
2010 May 25
1
[LLVMdev] DEBUG INFO at the bytecode level
Devang Patel <devang.patel <at> gmail.com> writes:
>
> 2010/5/18 Zheng Wang <jason.wangz <at> gmail.com>:
> >
> > I found DebugInfo.cpp may be useful. Could you tell me which function
> > I should call inorder to know the source file name and the line number
> > for a particular instruction?
> >
>
> See
2002 Dec 10
2
mingw compiling problem for libogg
(i hope this is correct m.list)
Hi,
there is a small compiling problem for mingw
when compiling on libogg..
in include/ogg/os_types.h :
ogg_int64_t, ogg_int32_t, etc are defined
correctly on cygwin and MSVC/Borland
but not on mingw...
i have attached a patch that will fix
this problem (i hope it attaches
correctly)
thx, Nehal
--- os_types.h.old Fri Jul 19 02:25:52 2002
+++ os_types.h Tue
2013 Nov 21
2
Query:: Reg: Libvirt Networking
Currently, I have two networks configured via xml:
virsh # net-dumpxml TestNetwork1
<network connections='2'>
<name>TestNetwork1</name>
<uuid>a76f665a-0196-4edb-81b4-340944a6869c</uuid>
<forward dev='p1p1' mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
<interface
2005 Feb 26
1
[patch] fixes for avi2vp3
here is a patch that fixes various bugs/problems with avi2vp3:
1. open() is not called with O_BINARY , this causes the program to
crash or give undesired results on win32 (and maybe other
platforms?), as binary mode is not default.
2. win32 does not understand chmod flags, ie:
(S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
3. buffer = malloc(AVI_max_video_chunk(avifile));
for some reason,
2013 May 12
1
Check Swap Usage on Guest VM from Host
I was wondering if swap usage of Guest VM can be checked from Host machine
via command line.Is it possible?
--
Nehal J. Wani
UG2, BTech CS+MS(CL)
IIIT-Hyderabad
http://commanlinewani.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130512/bee20a7e/attachment.htm>