search for: cast216

Displaying 2 results from an estimated 2 matches for "cast216".

Did you mean: cast210
2002 Nov 01
0
[LLVMdev] problem with llvmgcc and lli
...llvmgcc test.c -o test test.c: In function `init': test.c:10: warning: cast to pointer from integer of different size When I run it using lli, it even gave me the following segmentation fault: EXCEPTION OCCURRED [Segmentation Fault]: >#0. int "main"() store uint 1, uint* %cast216 Breakpoint hit! #5 store uint 1, uint* %cast216 #5 store uint 1, uint* %cast216 lli> Could you please let me know what's wrong with this program? The program is attached as follows: Thanks, xiaodong ------------------------------------------ #include <stdio.h> struct a {...
2002 Sep 17
1
[LLVMdev] #uses
When I use the llvm to print out the code, it actually gives out the number of uses for each variable, for example, I get lines like this: %S.i = alloca %struct.SimpleStruct ; <%struct.SimpleStruct*> [#uses=3] or this %cast216.i = getelementptr %struct.SimpleStruct* %S.i, long 0, ubyte 0 ; <int*> [#uses=1] My question is how the program knows about the number of uses. If I want to check all the future uses of this variable, say %S.i. Is there a way that I can directly find the uses of this variable? Or I...