search for: sandra0712

Displaying 6 results from an estimated 6 matches for "sandra0712".

2013 Feb 23
1
[LLVMdev] One question about two passes interaction
...dule pass and have it iterate through all of the functions in the module. You can find more information about passes and how to choose a type of pass in the llvm documentation at http://llvm.org/docs/WritingAnLLVMPass.html. Cheers, Scott On Sat, Feb 23, 2013 at 1:37 AM, Robert Sandra <robert.sandra0712 at gmail.com <http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>>wrote: >* Hi all,*>**>* I am trying to run a case as follows:*>**>* FunctionPass1: try to get all function's names and store them to a global*>* array*>* FunctionPass2: get information from the glo...
2013 Feb 23
1
[LLVMdev] One question about two passes interaction
Hi all, I am trying to run a case as follows: FunctionPass1: try to get all function's names and store them to a global array FunctionPass2: get information from the global array In FunctionPass2, I use getAnalysisUsage() to set that to run FunctionPass2, FunctionPass1 should be executed first. But according to the running result, I found that these two passes are executing at the same
2013 Feb 22
1
[LLVMdev] Does LLVM optimize variable to constant value in the compiling time?
By optimization, do you mean enable the optimization whiling building llvm or use optimization flag while using clang command to get the bitcode file? In my case, I disable the optimization when I built llvm, and I use the following command to get the bitcode: clang -O0 -emit-llvm hello.c -c -o hello.bc To run the pass: opt -load ../../../Debug+Asserts/lib/Hello.so -hello < hello.bc >
2013 Feb 22
4
[LLVMdev] Does LLVM optimize variable to constant value in the compiling time?
Considering the following codes: int x = 21; if(x > 20) { p = &C; } else { p = &E; } I looked into the bitcode that LLVM generates, it still considers the 'else' branch, which will be never reached during the runtime. Thanks, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Feb 27
0
[LLVMdev] A question about gcWriter
Hi all, According to my understanding, gcWriter is a write barrier which will be inserted to the source code whenever there is a write to a pointer which is pointing to a heap address, right? My question is on which level llvm inserts the barrier? Does llvm do it on AST, I mean insert a function call node calling the write barrier function to the AST, or llvm does it on code generation step?
2013 Feb 16
1
[LLVMdev] A weird problem when try to output operand of instruction involving function pointer in a struct
Hi all, I just start to learn llvm. I am trying to get the operand's name of some instruction that invokes a function field of a struct. While, I found in the result that there is a sequence number attached to the function field name. Below is an example: /******source code t2.c*******/ #include <stdio.h> void F(){printf("F\n");} void E(){printf("E\n");} void