Displaying 18 results from an estimated 18 matches for "pcall".
Did you mean:
call
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
Hi:
My llvm code is:
for( BasicBlock::iterator i = b->begin() , ie = b->end();
b != be ; b ++ ){
if( CallInst * pCall = dyn_cast<CallInst>(i)){
pCall->dump(); //
Function * pFunction = pCall->getCalledFunction();
if( !pFunction ){
}
std::string fname = pFunction->getName();
}
}
The dump result of the function call I want to find is :...
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...n do this in my c++ code??
thanks a lot!
> On 1/26/11 2:07 PM, songlh at cs.wisc.edu wrote:
>> Hi:
>>
>> My llvm code is:
>>
>> for( BasicBlock::iterator i = b->begin() , ie = b->end();
>> b != be ; b ++ ){
>> if( CallInst * pCall = dyn_cast<CallInst>(i)){
>>
>> pCall->dump(); //
>> Function * pFunction = pCall->getCalledFunction();
>> if( !pFunction ){
>>
>> }
>> std::string fname = pFunction->getName();
>>...
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...:07 PM, songlh at cs.wisc.edu wrote:
>>>> Hi:
>>>>
>>>> My llvm code is:
>>>>
>>>> for( BasicBlock::iterator i = b->begin() , ie = b->end();
>>>> b != be ; b ++ ){
>>>> if( CallInst * pCall = dyn_cast<CallInst>(i)){
>>>>
>>>> pCall->dump(); //
>>>> Function * pFunction = pCall->getCalledFunction();
>>>> if( !pFunction ){
>>>>
>>>> }
>>>>...
2011 Jan 26
0
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
On 1/26/11 2:07 PM, songlh at cs.wisc.edu wrote:
> Hi:
>
> My llvm code is:
>
> for( BasicBlock::iterator i = b->begin() , ie = b->end();
> b != be ; b ++ ){
> if( CallInst * pCall = dyn_cast<CallInst>(i)){
>
> pCall->dump(); //
> Function * pFunction = pCall->getCalledFunction();
> if( !pFunction ){
>
> }
> std::string fname = pFunction->getName();
> }
> }
>
>...
2011 Jan 26
0
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...!
>
>> On 1/26/11 2:07 PM, songlh at cs.wisc.edu wrote:
>>> Hi:
>>>
>>> My llvm code is:
>>>
>>> for( BasicBlock::iterator i = b->begin() , ie = b->end();
>>> b != be ; b ++ ){
>>> if( CallInst * pCall = dyn_cast<CallInst>(i)){
>>>
>>> pCall->dump(); //
>>> Function * pFunction = pCall->getCalledFunction();
>>> if( !pFunction ){
>>>
>>> }
>>> std::string fname = p...
2011 Jan 26
0
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...ote:
>>>>> Hi:
>>>>>
>>>>> My llvm code is:
>>>>>
>>>>> for( BasicBlock::iterator i = b->begin() , ie = b->end();
>>>>> b != be ; b ++ ){
>>>>> if( CallInst * pCall = dyn_cast<CallInst>(i)){
>>>>>
>>>>> pCall->dump(); //
>>>>> Function * pFunction = pCall->getCalledFunction();
>>>>> if( !pFunction ){
>>>>>
>>>>>...
2011 Jan 19
0
[LLVMdev] How to get the name and argument of a function
Thanks a lot!
I finally fix my problem.
My code is like this:
//CallInst* pCall pCall is a printf called in my situation
if( ConstantExpr * pCE = dyn_cast<ConstantExpr>( pCall->getArgOperand(0))){
if( GlobalVariable * pGV = dyn_cast<GlobalVariable>( pCE->getOperand(0))){
if( ConstantArray * pCA = dyn_cast<ConstantArray>(...
2011 Jan 17
5
[LLVMdev] How to get the name and argument of a function
Hi everyone:
The code I am analyzing is :
int main()
{
int i = 0;
printf("hello world!");
printf( "%d" , i );
}
I want to get each place where printf is called, and the argument used
during that call.
so I write llvm pass code like:
void Myfunction( Function & F){
for( Function::iterator b = F.begin() , be = F.end() ;
2000 May 22
1
character arguments with call_R (PR#552)
character arguments with call_R do not work except in the first
position. (In other positions, they just yield a single blank
character.)
The error is at line 1858 of dotcode.c which should be changed from
STRING(CAR(pcall))[i]=s;
to
STRING(CAR(pcall))[0]=s;
Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not...
2015 Mar 30
3
[LLVMdev] Invalid or unaligned stack
...is happening when the Lua code is attempting to call longjmp().
The Lua test case that triggers this is a recursive call as shown below.
function err_on_n (n)
if n==0 then error(); exit(1);
else err_on_n (n-1); exit(1);
end
end
do
function dummy (n)
if n > 0 then
assert(not pcall(err_on_n, n))
dummy(n-1)
end
end
end
dummy(10)
I have a struct that is created on the stack in the JIT compiler, and
this error is triggered when I add a field to the struct - if I remove
the field the error stops. The struct is not very large in size - it
is only 392 bytes with the...
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...; Hi:
>>>>>>
>>>>>> My llvm code is:
>>>>>>
>>>>>> for( BasicBlock::iterator i = b->begin() , ie = b->end();
>>>>>> b != be ; b ++ ){
>>>>>> if( CallInst * pCall = dyn_cast<CallInst>(i)){
>>>>>>
>>>>>> pCall->dump(); //
>>>>>> Function * pFunction = pCall->getCalledFunction();
>>>>>> if( !pFunction ){
>>>>>>
>>&g...
2010 Jul 22
0
[LLVMdev] Assert in llvm-2.7
...chables.end(); uriter++)
{
Function* func = *uriter;
// make sure that the use is within one of the functions
// we're going to remove.
for (Value::use_iterator iter = func->use_begin(); iter !=
func->use_end(); iter++)
{
CallInst* pCall = dyn_cast<CallInst>(*iter);
assert(pCall != NULL);
Function* callerFunc = pCall->getParent()->getParent();
assert(unreachables.find(callerFunc) != unreachables.end());
}
func->replaceAllUsesWith(UndefValue::get(func->getType()))...
2010 Sep 16
1
[LLVMdev] moving from llvm 2.6 -> 2.7
...chables.end(); uriter++)
{
Function* func = *uriter;
// make sure that the use is within one of the functions
// we're going to remove.
for (Value::use_iterator iter = func->use_begin(); iter !=
func->use_end(); iter++)
{
CallInst* pCall = dyn_cast<CallInst>(*iter);
assert(pCall != NULL);
Function* callerFunc = pCall->getParent()->getParent();
assert(unreachables.find(callerFunc) != unreachables.end());
}
func->replaceAllUsesWith(UndefValue::get(func->getType()))...
2011 Jan 18
0
[LLVMdev] How to get the name and argument of a function
songlh at cs.wisc.edu wrote:
> Hi everyone:
>
> The code I am analyzing is :
>
> int main()
> {
> int i = 0;
> printf("hello world!");
> printf( "%d" , i );
> }
>
>
>
> I want to get each place where printf is called, and the argument used
> during that call.
>
> so I write llvm
2015 Apr 01
2
[LLVMdev] Invalid or unaligned stack
...m.
> Essentially the problem occurs if a JITed function is recursively
> called - and there is a longjmp from the inner call. Example:
>
> function rais(n)
> if n == 0 then error()
> else rais(n-1)
> end
> end
> ravi.compile(rais)
>
> function caller(n)
> pcall(rais,n)
> end
> ravi.compile(caller)
>
> caller(1)
>
> Here the call to error() triggers a longjmp. The pcall() calls setjmp.
> The error only occurs on Windows as reported earlier.
>
This isn't enough info to solve the problem. Pasting the LLVM IR or C code
that calls...
2004 Nov 30
0
[LLVMdev] Trouble using llvm tools
...--------------------------
^B^@^@��^C^A��^C^A��^C^B��^D^@^@^R^U^W��#^M^@^@^C^@^NThis">llvm^A^@^@^@�^A^@^@0������F^E^@^@^O^P^N^O^C^X^P^P^O^C^U^P^A^P^T^P^C^M^G^B^S^@^P^^@^A^G^P^X^M^G^@^N^G^[^@^M^@^@^P^Z����<85>^B^@^@��^C^A��^C^A��^C^B��^D^@^@^R^U^W��#^M^@^@^C^@^NThis is main function
^@^PCalling sub function^@^PThis is sub ^P^Hb^Q^A^A'>function^@^A^A^@^A^A^G^@^B^C^S^C^Y^A^M^@^G^@^G^C^Y^A^O^@^G^@^G^C^Y^B^O^@^G^@^G������"^@^@^@^@������"^@^@^@^@������^B^Q^@^@^@����^G^F^@^@]^Q^P^@^K<8c>^P^Hb^Q^A^A ^L ^@p^R^B^A^A������p^R^B^A^B������p^R��r^U^A^A^E^G^@^@��^H^@^@^@^A^A^...
2004 Nov 30
4
[LLVMdev] Trouble using llvm tools
On Tue, 30 Nov 2004, Tanu Sharma wrote:
> I have trouble using the llvm tools.Some of the errors are :
>
> $ llvm-dis prog.bc
> $ llvm-dis: Invalid Top Level Block Length! Type:1, Size:456 (Vers=0, Pos=12)
Can you explain how you generated this bytecode file? It looks corrupted
or something. Also, can you send the actual bytecode file itself?
Thanks!
-Chris
>
2012 Dec 13
3
Lua improvements
Here are a few patches I applied to get the Lua bindings to build
correctly with different versions of Lua.
I am not particularly happy with generating all the test scripts just
for the shebang line. Since it has been a while since I had to edit
autoconf/automake, this was the best I could come up with.
Cheers,
-Hilko