Displaying 12 results from an estimated 12 matches for "callcheck".
2012 Apr 07
1
[LLVMdev] How to insert a self-written function to a piece of programme
...ssful. The pass can find the function I like and can insert the CallInst to call my check function. BUT, when running the pass, it breaks down. The Diagnose is as follow,
************************************************************************************
Referencing function in another module!
%CallCheck = call i32 @check()
Broken module found, compilation aborted!
0 opt 0x087aa95b
1 opt 0x087aa6e8
2 0x00d54400 __kernel_sigreturn + 0
3 libc.so.6 0x009c2a82 abort + 386
4 opt 0x08756f15
5 opt 0x08756c2d
6 opt 0x0873a18a llvm::FPPassManager::runOnFunction...
2012 Apr 09
3
[LLVMdev] How to instrument a this function using insertBefore instruction???
...trument this hello function right before the instruction that call the "puts" function(the source code is as follow).
Now I can compile the pass without errors, but when run the pass with opt tool, it broke down. The diagnose is something like
Referencing function in another module!
%CallCheck = call i32 @fib()
Broken module found, compilation aborted!
Does it mean I fail to wrap the function into a module?? How to actually insert the the "hello function" before the calling instruction ?? Im waiting for your help.
Thank you!!
//******==========================================...
2012 Apr 10
4
[LLVMdev] How to explain this weird phenomenon????????
...t;check",
Type::getInt32Ty(III->getCalledFunction()->getParent()->getContext()),
(Type *)0));
// Create the CallInst to call for the check function!
CallInst *callcheck = CallInst::Create(check,"CallCheck");
// insert the CallInst right before II
callcheck->insertBefore(II);
errs() <<"INSERT SUCCEE...
2012 Apr 09
2
[LLVMdev] How to instrument a this function using insertBefore instruction???
...t before the instruction
> that call the "puts" function(the source code is as follow).
>
> Now I can compile the pass without errors, but when run the pass with opt
> tool, it broke down. The diagnose is something like
>
> Referencing function in another module!
> %CallCheck = call i32 @fib()
> Broken module found, compilation aborted!
>
> Does it mean I fail to wrap the function into a module?? How to actually
> insert the the "hello function" before the calling instruction ?? Im
> waiting for your help.
> Thank you!!
>
>
> //*****...
2012 Apr 09
0
[LLVMdev] How to instrument a this function using insertBefore instruction???
...trument this hello function right before the instruction that call the "puts" function(the source code is as follow).
Now I can compile the pass without errors, but when run the pass with opt tool, it broke down. The diagnose is something like
Referencing function in another module!
%CallCheck = call i32 @fib()
Broken module found, compilation aborted!
Does it mean I fail to wrap the function into a module?? How to actually insert the the "hello function" before the calling instruction ?? Im waiting for your help.
Thank you!!
//******==========================================...
2012 Apr 10
0
[LLVMdev] How to explain this weird phenomenon????????
...t;check",
Type::getInt32Ty(III->getCalledFunction()->getParent()->getContext()),
(Type *)0));
// Create the CallInst to call for the check function!
CallInst *callcheck = CallInst::Create(check,"CallCheck");
// insert the CallInst right before II
callcheck->insertBefore(II);
errs() <<"INSERT SUCCEE...
2012 Apr 09
0
[LLVMdev] How to instrument a this function using insertBefore instruction???
...trument this hello function right before the instruction that call the "puts" function(the source code is as follow).
Now I can compile the pass without errors, but when run the pass with opt tool, it broke down. The diagnose is something like
Referencing function in another module!
%CallCheck = call i32 @fib()
Broken module found, compilation aborted!
Does it mean I fail to wrap the function into a module?? How to actually insert the the "hello function" before the calling instruction ?? Im waiting for your help.
Thank you!!
//******==========================================...
2012 Apr 09
1
[LLVMdev] How to instrument a this function using insertBefore instruction???
...;> that call the "puts" function(the source code is as follow).
>>
>> Now I can compile the pass without errors, but when run the pass with opt
>> tool, it broke down. The diagnose is something like
>>
>> Referencing function in another module!
>> %CallCheck = call i32 @fib()
>> Broken module found, compilation aborted!
>>
>> Does it mean I fail to wrap the function into a module?? How to actually
>> insert the the "hello function" before the calling instruction ?? Im
>> waiting for your help.
>> Thank you!...
2012 Apr 08
0
[LLVMdev] How to insert a self-written function to a piece of programme
...ssful. The pass can find the function I like and can insert the CallInst to call my check function. BUT, when running the pass, it breaks down. The Diagnose is as follow,
************************************************************************************
Referencing function in another module!
%CallCheck = call i32 @check()
Broken module found, compilation aborted!
0 opt 0x087aa95b
1 opt 0x087aa6e8
2 0x00d54400 __kernel_sigreturn + 0
3 libc.so.6 0x009c2a82 abort + 386
4 opt 0x08756f15
5 opt 0x08756c2d
6 opt 0x0873a18a llvm::FPPassManager::runOnFunction...
2012 Apr 10
0
[LLVMdev] How to explain this weird phenomenon????????
...et i32 %sub
}
define i32 @main() nounwind {
entry:
%call1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([18 x i8]* @.str, i32 0, i32 0), i32 3) nounwind
%call3 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([20 x i8]* @.str1, i32 0, i32 0), i32 1) nounwind
%CallCheck = call i32 @check()
%puts = tail call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @str, i32 0, i32 0))
ret i32 0
}
declare i32 @printf(i8* nocapture, ...) nounwind
declare i32 @puts(i8* nocapture) nounwind
declare i32 @check()
The original hello.c file
#include <stdio.h>
extern in...
2012 Apr 10
1
[LLVMdev] How to explain this weird phenomenon????????
...n() nounwind {
> entry:
> %call1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([18
> x i8]* @.str, i32 0, i32 0), i32 3) nounwind
> %call3 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([20
> x i8]* @.str1, i32 0, i32 0), i32 1) nounwind
> %CallCheck = call i32 @check()
> %puts = tail call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @str,
> i32 0, i32 0))
> ret i32 0
> }
>
> declare i32 @printf(i8* nocapture, ...) nounwind
>
> declare i32 @puts(i8* nocapture) nounwind
>
> declare i32 @check()
> The orig...
2012 Apr 10
3
[LLVMdev] How to explain this weird phenomenon????????
I did it !!!!
YOU MADE MY DAY !!!!!!!!!!!!!!!
--
祝好!
甄凯
------------------------------------------------------------------------------------------------------
2012-04-10
------------------------------------------------------------------------------------------------------
Name: 甄凯(ZhenKai)
Homepage:http://www.renren.com/262729393
Email: zhenkaixd at 126.com or 846227103 at