Source Code Instrumentaton via Clang/LLVM

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Source Code Instrumentaton via Clang/LLVM

shirley breuer via cfe-dev
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

cfe-dev mailing list
[hidden email]

Makefile (7K) Download Attachment
functionCPPviaClang.cpp (10K) Download Attachment
forCPPviaClangLoop.cpp (10K) Download Attachment
forCPPviaClang.cpp (11K) Download Attachment
forCPPallViaClang.cpp (10K) Download Attachment
selectedFunctionCPPviaClang.cpp (10K) Download Attachment