search for: zell08v

Displaying 8 results from an estimated 8 matches for "zell08v".

2015 May 07
2
[LLVMdev] Integer ID for LLVM::Instruction*?
...flags` -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 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*, i...
2015 May 06
5
[LLVMdev] Integer ID for LLVM::Instruction*?
Hi, I wonder whether 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
2015 Apr 19
2
[LLVMdev] LLVM IR for inline functions
Hi, I have a naive question on how to generate LLVM IR for inline functions. I have compiled this C code: *inline void func1()* * {* * int x=3;* * }* * void func2()* * {* * func1();* * int y = 4;* * }* into LLVM IR, using clang -emit-llvm -S -c <filename> But the generated LLVM IR file does *not* have func1() expanded (see below for the relevant parts). *; Function Attrs: nounwind
2015 Jul 24
2
[LLVMdev] Transforming SwitchInst to BranchInst
Hi, Are there some built-in LLVM transformation pass, or written library code that transforms LLVM::SwitchInst into if-condition statements (LLVM:: BranchInst)? The purpose of the transformation is that we have a legacy program analyzer that includes an LLVM pass manipulating if-condition statements. Statements of LLVM::SwithchInst should have been handled in the same manner but was not done.
2015 Jun 07
2
[LLVMdev] Loop Unfolding in LLVM
Hello, I am looking for a loop unfolding procedure implemented in LLVM that helps to transform a while-loop to n-layer If-statements. The transformation should be on IR, although the example below is illustrated on the source level. original loop: * WHILE (condition) DO action ENDWHILE* Expected unfolded loop (2-layer): * IF (condition) THEN* * action* * IF
2016 Aug 13
2
A "hello world" coverage sanitizer
Thank you, kcc. I am unsure if I misunderstand your reply. It seems that trace-bb, rather than trace-pc, fits better for my problem, given that my instrumentation is to put before each conditional statement. Do I misunderstand something here? " Tracing basic blocks <http://clang.llvm.org/docs/SanitizerCoverage.html#id11> With -fsanitize-coverage=trace-bb the compiler will insert
2015 Apr 09
3
[LLVMdev] BasicBlock.h in the binary and in the source differ
Hi, I am using LLVM to develop a tool, using Mac OS 10.9. I have download llvm source and binary from http://llvm.org/releases/download.html I just find the BasicBlock.h file of the binary package clang+llvm-3.6.0-x86_64-apple-darwin/include/llvm/IR/BasicBlock.h is slightly different from that of the source llvm/include/llvm/IR/BasicBlock.h In particular, llvm:: getModule(..)
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 >> >>