Displaying 2 results from an estimated 2 matches for "staticcallcount".
Did you mean:
staticcallcounter
2019 Jul 15
3
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
...at you can be confident that it
> works. If it doesn't, ping me - I'm keen on improving it.
Cool, thanks. I just started reading over that now. I have a couple
of questions already, if you don't mind:
1) I see you're building the pass with
add_library(lt-cc-static STATIC StaticCallCounter.cpp
DynamicCallCounter.cpp)
add_library(lt-cc-shared MODULE StaticCallCounter.cpp
DynamicCallCounter.cpp)
What's the reason for building a STATIC version? Does any LLVM tool
make use of that?
Is add_library the preferred pass-building CMake macro these days,
as opposed to add_l...
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
Florian,
On 7/10/19 2:17 PM, Florian Hahn wrote:
> http://www.cs.cornell.edu/~asampson/blog/llvm.html describes how to
> create an out-of-source pass (see 'Let’s Write a Pass’). I think it
> is for LLVM 3.8 though.
Thanks for pointing that out. I had actually recently stumbled across
that page (and the GitHub repository it references,
https://github.com/sampsyo/llvm-pass-skeleton)