Displaying 20 results from an estimated 700 matches similar to: "How to add custom instrumentation?"
2017 Jul 13
2
How to add custom instrumentation?
Thanks for the hint, I didn’t know about this option. That’s a great reference!
However, I am trying to be a compiler/language agnostic.
Also (for whatever reasons) I need a numeric ID of a function rather then its address.
So the question is still opened.
May I assume that the following always holds:
The first basic block in a function is an entry point and the last basic block in a function is
2015 Sep 10
2
LibFuzzer and platforms availability
r247321 refactors the code so that it should build on Mac.
I haven't actually tested it on Mac -- so please help me and send follow up
patches if needed.
check-fuzzer will still fail because some of the libFuzzer tests require
dfsan.
I'd use some help from someone with a Mac to modify
lib/Fuzzer/test/CMakeLists.txt so that it does not run dfsan-dependent
tests on Mac.
Thanks,
--kcc
On
2016 Apr 11
2
Creating an LLVM Project
Hi there,
I have a question regarding this documentation page: http://llvm.org/docs/Projects.html
IIRC LLVM has moved away from Makefile's and uses CMake only.
The question is:
Is the page outdated or is it a recommended way for creating LLVM based project?
P.S. I’m trying to create a project using CMake, though I’m seeing some issues (didn’t manage to include headers so far).
--
2016 Dec 19
1
Reining in profile instrumentation
Thanks Vedant, and my apologies for the delay getting back to you - work got "busy".
I wasn't aware of the '-fprofile-generate' option, so thanks for point this out. I have tried running it and I can see the instrumentation hooks that it generates - I assume that there is a library I have to implement to support this, can you let me know where the source for this library
2016 Apr 05
3
[llvm-c] Deprecated functions
Hi everyone,
I’m working with the LLVM C API now.
I see that several functions are deprecated, however the only notion is in comments around the function.
Is there any specific reason why __attribute__((deprecated)) is omitted?
Will it make sense to send a patch with such additions?
--
AlexDenisov
Software Engineer, http://lowlevelbits.org
-------------- next part --------------
A non-text
2016 Dec 13
0
Reining in profile instrumentation
> On Dec 13, 2016, at 3:46 AM, Martin J. O'Riordan via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> When either ‘-pg’ or ‘-finstrument-functions’ is used, the compiler inserts the appropriate profiling hooks. This happens prior to inlining, so the hooks remain in place.
Have you tried compiling with -fprofile-generate? It enables IR-based profiling
instrumentation, which
2018 May 30
3
Miscompilation while switching from clang-4 to clang-5
Hello everyone,
I observe a weird behavior switching from clang-4 to clang-5 (and any higher version).
I compile an executable that depends on LLVM. Everything works fine with clang-4, but when I run the executable compiled with clang-5 I see the following error:
: CommandLine Error: Option 'rewrite-map-file' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine
2015 Sep 09
3
LibFuzzer and platforms availability
Hi there.
I’m trying to use LibFuzzer on OSX and face some issues:
I checked out LibFuzzer documentation[1] and managed to proceed until the final step of the first example.
Now I see linker errors related to dfsan, dfsan’s documentation[2] states explicitly “DataFlowSanitizer is a work in progress, currently under development for x86_64 Linux.”.
Does it mean that LibFuzzer available only on
2017 Jan 05
2
LLVM-based Mutation Testing, first results.
Hello, everybody.
We are working on a tool for mutation testing. The work is still in progress and far away from being done.
However, we have got some results already. And we would like to share them with you.
But, let me give you a brief introduction first.
### Mutation Testing
In a nutshell, Mutation Testing is a way to evaluate a quality of a test suite.
The approach suggests introducing a
2017 Mar 26
2
Communication channel for EuroLLVM
Hi there,
I’m curious is there any (official or not) communication channel for upcoming EuroLLVM?
If there is none besides mailing lists and IRC, shall we then setup something like Slack?
--
AlexDenisov
Software Engineer, https://lowlevelbits.org
2017 Oct 09
2
Is llvm.org down?
There seems to be an issue with DNS:
> nslookup llvm.org
;; Got SERVFAIL reply from 192.168.178.1, trying next server
Server: 192.168.178.1
Address: 192.168.178.1#53
** server can't find llvm.org: NXDOMAIN
--
AlexDenisov
Software Engineer, https://lowlevelbits.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type:
2016 Nov 09
2
[ORC] SimpleCompiler and module transformations
Hi devs, hi Lang,
I use ORC’s SimpleCompiler to compile modules into object files and it works just great, however I’m having an issue:
a module gets changed a bit when I compile it (some transformations/optimizations applied).
I tried to set optimization level of a TargetMachine to None, but the module gets changed anyway.
The question is: how can I prevent a module from being modified during
2016 May 17
5
Interested in writing for the LLVM blog?
Hello!
I am looking for a handful of people to help write blog posts for the LLVM blog (blog.llvm.org <http://blog.llvm.org/>) or to help recruit volunteers to write blog posts. The LLVM Project blog is a great place to share details about recent changes to LLVM, Clang, and related sub-projects. It also is a great place to highlight users of LLVM. You can write about your work or the work
2016 Jul 13
4
LLVM Social in Berlin, Germany
Hello everyone,
My name is Alex, I'm hobbyist compiler hacker who lives in Berlin, Germany now.
I'm thinking about organising "LLVM Social" meetups in Berlin, however I don't really know how many people are here, and how many of them are interested in getting in touch.
If you want to participate or have any questions - feel free to answer to this thread, or to send me a
2016 Jul 15
3
LLVM Social in Berlin, Germany
Appreciations for the initiative! There are some people in the Berlin
C++ user group [1] who may be interested. Also there was an active
compiler meetup group [3] a few years ago. As far as I know these guys
mostly joined the Strange Group Berlin [2], but may still be interested
in a more compiler-focused meetup.
For the people cc'd: please let us know who'd like to participate in a
LLVM
2017 Apr 03
2
Debugging Docs and llvm.org/docs/
Hi -- I've recently added some documentation to the LLVM docs subdirectory, and was wondering about a couple of things:
- How should I best debug whether the docs (in RST) are syntactically correct? Are there recommended practices for doing a sanity check on the docs?
- How often do the documents get built and uploaded to the website?
Cheers
-- Dean
2017 Aug 15
3
How to debug instruction selection
Hi there,
I try to JIT compile some bitcode and seeing the following error:
LLVM ERROR: Cannot select: 0x28ec830: ch,glue = X86ISD::CALL 0x28ec7c0, 0x28ef900, Register:i32 %EDI, Register:i8 %AL, RegisterMask:Untyped, 0x28ec7c0:1
0x28ef900: i32 = X86ISD::Wrapper TargetGlobalAddress:i32<void (i8*, ...)* @_ZN5FooBr7xprintfEPKcz> 0
0x28ec520: i32 = TargetGlobalAddress<void (i8*, ...)*
2016 May 18
0
Interested in writing for the LLVM blog?
Hi everybody,
I do write some Clang/LLVM related articles on my blog[1][2], and I will be happy to write for LLVM’s blog.
However, I can’t omit bike-shedding :)
Forgive me my directness, but current blog doesn’t look like something close to 2016.
The blog already has lots of great articles. But it’s so hard to grasp valuable information when you have to read non-highlighted C++ code.
I think I
2016 Jun 04
2
LLVMLinkModules2() C-API question
Hey all,
A quick question about the LLVM C-Api and using LinkModules. In a normal
situation where I have 2 LLVM modules and 1 depends on the other using
LLVMLinkModules2() works perfectly.
LLVMLinkModules2() "Links the source module into the destination module.
The source module is destroyed." according to the comment of the function.
That is all fine when you only have 2 modules.
But
2017 Jul 29
2
Compiling LLVM to LLVM IR
Hello everyone,
I'm trying to compile LLVM and Clang into LLVM IR with debug info. I know that clang++ -g2 -S -emit-llvm <filename> does this, but I'm unfamiliar with CMake.
I tried changing CMAKE_CXX_FLAGS in CMakeCache.txt to "clang++ -g2 -S -emit-llvm," "-g2 -S -emit-llvm," and "-emit-llvm," but everything I tried resulted in a failed build, and/or