Displaying 11 results from an estimated 11 matches for "zhoulai".
Did you mean:
houla0
2016 Aug 13
2
A "hello world" coverage sanitizer
...ocks
<http://clang.llvm.org/docs/SanitizerCoverage.html#id11>
With -fsanitize-coverage=trace-bb the compiler will insert
__sanitizer_cov_trace_basic_block(s32 *id) before every function, basic
block, or edge (depending on the value of -fsanitize-coverage=[func,bb,edge]).
"
*Thanks,*
*Zhoulai*
Zhoulai
On Fri, Aug 12, 2016 at 1:57 PM, Kostya Serebryany <kcc at google.com> wrote:
> Hi Zhoulai,
> The closest you can get is http://clang.llvm.org/docs/
> SanitizerCoverage.html#tracing-pcs
> With this flavor of instrumentation the compiler inserts calls to
> __sani...
2015 May 07
2
[LLVMdev] Integer ID for LLVM::Instruction*?
...~~~~~~~~~~~~~~~~~~1
warning and 1 error generated.*
For information, my OS is a Ubuntu 14.04 (VM), and my command line used to
compile the program is
*clang prog.cpp -c -fno-rtti -std=c++11 `llvm-config --cxxflags` -o
prog.cpp.bc *
Any idea on why the casting does not work? Thanks in advance.
Zhoulai
On Wed, May 6, 2015 at 4:12 PM, David Blaikie <dblaikie at gmail.com> wrote:
> intptr_t id = static_cast<intptr_t>(inst);
>
> ?
>
> On Wed, May 6, 2015 at 3:33 PM, Zhoulai <zell08v at gmail.com> wrote:
>
>> Hi,
>>
>> I wonder whether we can ea...
2015 May 06
5
[LLVMdev] Integer ID for LLVM::Instruction*?
...we can easily retrieve an LLVM instruction ID that
uniquely identifies the instruction. In my case, I need to avoid using
llvm::Instruction* directly. Given an 'inst' of type llvm::instruction*, is
there some readily usable method as simple as "int id = inst->id( )"?
Thanks.
Zhoulai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150506/d6700b03/attachment.html>
2015 Apr 09
2
[LLVMdev] BasicBlock.h in the binary and in the source differ
The source is cloned from
https://github.com/llvm-mirror/llvm
Thanks.
Zhoulai
On Thu, Apr 9, 2015 at 9:15 AM, Jonathan Roelofs <jonathan at codesourcery.com>
wrote:
>
>
> On 4/9/15 9:58 AM, Zhoulai wrote:
>
>> Hi, I am using LLVM to develop a tool, using Mac OS 10.9. I have
>> download llvm source and binary from
>>
>> http://llvm....
2016 Aug 12
2
A "hello world" coverage sanitizer
...quot;hello"
>From my understanding about Clang's sanitizer coverage,
<http://clang.llvm.org/docs/SanitizerCoverage.html> we can use a sanitizer
to achieve this instrumentation. However, so far I have not found a
working example or snippet code to get started. Any idea?
Thanks,
Zhoulai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160812/ed10dbd5/attachment.html>
2015 Apr 09
3
[LLVMdev] BasicBlock.h in the binary and in the source differ
...htly different from that of the source
llvm/include/llvm/IR/BasicBlock.h
In particular, llvm:: getModule(..) is included in the latter BasicBlock.h
but not in the former BasicBlock.h. Am I misunderstanding something or is
it an inconsistency LLVM developers will fix?
Thanks in advance.
Zhoulai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150409/ce905373/attachment.html>
2015 Jul 24
2
[LLVMdev] Transforming SwitchInst to BranchInst
...*if (grad=='A') printf("Excellent!\n" );*
*else if (grad=='B') printf("Well done\n" );*
*else printf("Invalid grade\n" );*
-------------------------------------------------
Are you aware of such a transformation pass ? Thanks.
Zhoulai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150724/178db13e/attachment.html>
2015 Jun 07
2
[LLVMdev] Loop Unfolding in LLVM
...tion) DO
action
ENDWHILE
*
* ENDIF*
* ENDIF*
(I thought such transformation is somewhat standard but do not find it the
related API of LLVM:loop:
http://llvm.org/docs/doxygen/html/classllvm_1_1Loop.html)
Thanks for your help.
Sincerely,
Zhoulai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150607/4c3b0313/attachment.html>
2015 Apr 19
2
[LLVMdev] LLVM IR for inline functions
...able*
* define void @func2() #0 {*
* entry:*
* %y = alloca i32, align 4*
* call void (...)* @func1()*
* store i32 4, i32* %y, align 4*
* ret void*
* }*
* declare void @func1(...) #1*
Question: Do I need to pass some special command line options so to make
func1() expanded in the LLVM IR? Thanks.
Zhoulai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150418/e8896267/attachment.html>
2015 May 02
5
[LLVMdev] Modifying LoopUnrollingPass
Hi Zhoulai,
I am trying to modify "LoopUnrollPass" in llvm which produces multiple
copies of loop equal to the loop unroll factor.Currently, using multicore
architecture, say 3 for example and the execution goes like:
for 3 cores if there are 9 iterations of loop
core instruction
1...
2015 May 04
2
[LLVMdev] Modifying LoopUnrollingPass
...ssage "LV: Trying to at least unroll the loops."
>>> to locate this in the code).
>>>
>>> Michael
>>>
>>> > On May 2, 2015, at 9:00 AM, yaduveer singh <yaduveer99 at gmail.com>
>>> wrote:
>>> >
>>> > Hi Zhoulai,
>>> >
>>> > I am trying to modify "LoopUnrollPass" in llvm which produces multiple
>>> > copies of loop equal to the loop unroll factor.Currently, using
>>> multicore
>>> > architecture, say 3 for example and the execution goes lik...