search for: callit

Displaying 9 results from an estimated 9 matches for "callit".

Did you mean: callid
2010 Nov 30
0
[LLVMdev] the called function equal NULL
...--------------------------- > > My question is: > > When does the called function equal NULL, could you give an example? I mean what kind of call in source code could change to this case in llvm-IR, could you give an example? A call to a value of function-pointer type, e.g. void callit(void (*f)()) { f(); } Virtual calls in C++ would also have no known called function. John. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101129/74dc2a75/attachment.html>
2008 Jun 09
1
Basic Question on Keys/Values
As a java programmer, I'm having issue conceptualizing the following use case: Given an value, passed into a function, how do I pull out the lookup? Ie. A list of keys (key1, key2, key3) A list of values (val1,val2,val3) I want to write a function (or is there something built in?) such that Callit <- (thekey) { (magic happens here) Return value } Any ideas? Thanks a bunch! ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/discl...
2010 Nov 30
2
[LLVMdev] the called function equal NULL
Hi, I have a llvm-pass in hand written by other people. There are following statements that I couldn't understand: -------------------------------program---------------------------------------------------- ... if (isa<CallInst>(inst) || isa<InvokeInst>(inst)) { const CallSite cs(inst); if (cs.getCalledFunction() == NULL) return dealAtIndirectCall(cs); else
2005 Sep 21
2
cdecl and stdcall
Hi, I'm trying to load a dynamic link library and it seems to work (is.loaded -> TRUE). When I run the function, which calls the .Fortran subroutine, R crashes! I'v tried the same in S-Plus 2000 and it worked. Therefore I suppose that the dll has been compiled with the stdcall calling convention (and not cdecl). But the problem is that I don't have access to the source code,
2012 Sep 19
3
[LLVMdev] newbie question on getelementptr
Hi All, I'm new to LLVM and I'm having a coding problem. I'm creating a GlobalVariable that contains a StructType that contains a Function. The function returns i32 and takes two i32's. Here is my code: GlobalVariable* retrieved = module->getGlobalVariable("myGV"); ... Constant* result = ConstantExpr::getGetElementPtr(retrieved, indices); How do I get my Function
2004 Jun 08
2
Recoding a multiple response question into a series of 1, 0 variables
Hello R folks. 1) The question that generated the data, which I call Qx: Which of the following 5 items have you performed in the past month? (multipe response) 2) How the data is coded in my current dataframe: The first item that a person selected is coded under a field called Qxfirst; the second selected under Qxsecond, etc. For the first Person, the NAs mean that that person only selected
2010 Jun 14
4
Unable to pickup an extension, trying everything
Hello list, I try to pick up a ringing extension but nothing works. To be clear, I'm trying to pick up extension 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:4] Pickup("SIP/testcorp3-00000041", "10 at 123456") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] --
2012 Sep 19
0
[LLVMdev] newbie question on getelementptr
...m.org/demo/index.cgi is handy for that. In your > specific case, put there the code below, check the C++ radiobutton, > select the C++ API target and push the Compile button. > > struct Foo { > int dummy; > double anotherDummy; > int (*fn)(int, int); > }; > > int callIt(Foo foo) { > return (*foo.fn)(1, 2); > } > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120919/cc964af3/attachment.html>
2019 May 16
3
ALTREP: Bug reports
Hello, I have encountered two bugs when using ALTREP APIs. 1. STDVEC_DATAPTR >From RInternal.h file it has a comment: /* ALTREP support */ > void *(STDVEC_DATAPTR)(SEXP x); However, this comment might not be true, the easiest way to verify it is to define a C++ function: void C_testFunc(SEXP a) > { > STDVEC_DATAPTR(a); > } and call it in R via > a=1:10 > >