search for: matthjis

Displaying 5 results from an estimated 5 matches for "matthjis".

Did you mean: matthijs
2008 Aug 05
2
[LLVMdev] Anderson's analysis, getresult instruction on x86_64
...tract the Value* of the appropriate field of getresult using the index (0 in this case) and the base structure (%74) ? (or is this what you were refering to: "For aggregates in memory, the pointer to the part of the aggregate can simply be used, but no such thing for first class values.", Matthjis ?) Since in all the programs on which I am running Andersen's analysis, the only usage of getresult is in accessing non-pointers: %mrv_gr205 = getresult { i64, i64 } %615, 1 ; <i64> [#uses=1] , for now, it seems to be ok to just ignore such instructions for pointer analysis (by the...
2008 May 22
0
[LLVMdev] How to get a return type of a function with LLVM-C API
Hi Syoyo, > I am trying to get a return type of a function(from bitcode file) with > LLVM-C API, but there seems no appropriate API to do that. From my memory, this info is stored in the function type, so you could look at the function's type and get the info there. Looking the the API docs [1], I find that there is a simple method on Function called getReturnType(). You should thus be
2008 Aug 05
0
[LLVMdev] Anderson's analysis, getresult instruction on x86_64
Hi Prakash, I think this is highly related to PR2527 [1] and PR2451 [2]. I assume you are using LLVM 2.3, since current svn automatically replaces getresult with extractvalue instructions (but doesn't help for Andersen's). In either case, it seems that Andersen's currently has no ready made way to indicate a part of a first-class aggregate (or vector), which is the essence of the
2008 May 22
3
[LLVMdev] How to get a return type of a function with LLVM-C API
Hi LLVM-ers, I am trying to get a return type of a function(from bitcode file) with LLVM-C API, but there seems no appropriate API to do that. I've tried to do that with following code, ---- LLVMModuleRef M; LLVMMemoryBufferRef MemBuf; LLVMValueRef F; // Function LLVMTypeRef RetTy; char *ErrStr; // // -- Load shader module //
2008 Aug 05
3
[LLVMdev] Anderson's analysis, getresult instruction on x86_64
Hi, I was trying to run Anderson's pointer analysis using opt on a 64 bit x86 system (running Ubuntu 8.04) and it seems that the 'getresult' instruction is not currently handled. When I run the same analysis on the bitcode got by compiling (using llvm-gcc on a 32 bit machine) on a 32-bit x86 machine, it runs fine. I was trying to see if it is possible to quickly add a