[cfe-dev] Source Code Instrumentaton via Clang/LLVM

Anja Gerbes via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 29 01:37:11 PST 2021


Dear community,

I would like to start a conversation about Source-to-Source Instrumentation
via LLVM/clang.

In the past, 2014 I think, I have worked with the Clang Ast to do a
Source-Code Instrumentation via LLVM/clang and add Likwid directives to
c/c++ source code. May I ask you how can I update my file to the latest
version? Since it is many years ago I created this code and LLVM/clang is
growing so fast, my question is, how to achieve my goals in the newest
clang version?

My project is written in python and for the source-code instrumentation
step I have created several cpp files based on what has to be instrumented.
The user has to decide how to instrument, which part of the code has to be
measured later, eg. the whole file, a function, a specific for loop.

Highly appreciate your guidance. Where should I start to work with the
latest Clang Ast. Any thoughts about?

Best regards
Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/6f93064f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 5456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/6f93064f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: functionCPPviaClang.cpp
Type: text/x-c-code
Size: 7633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/6f93064f/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: forCPPviaClangLoop.cpp
Type: text/x-c-code
Size: 8226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/6f93064f/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: forCPPviaClang.cpp
Type: text/x-c-code
Size: 8343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/6f93064f/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: forCPPallViaClang.cpp
Type: text/x-c-code
Size: 8157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/6f93064f/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selectedFunctionCPPviaClang.cpp
Type: text/x-c-code
Size: 7579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/6f93064f/attachment-0009.bin>


More information about the cfe-dev mailing list