Anja Gerbes via llvm-dev
2021-Jan-29 09:37 UTC
[llvm-dev] Source Code Instrumentaton via Clang/LLVM
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/llvm-dev/attachments/20210129/6f93064f/attachment.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/llvm-dev/attachments/20210129/6f93064f/attachment.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/llvm-dev/attachments/20210129/6f93064f/attachment.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/llvm-dev/attachments/20210129/6f93064f/attachment-0001.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/llvm-dev/attachments/20210129/6f93064f/attachment-0002.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/llvm-dev/attachments/20210129/6f93064f/attachment-0003.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/llvm-dev/attachments/20210129/6f93064f/attachment-0004.bin>