[all-commits] [llvm/llvm-project] 169003: [Instrumentor] Add Cast instruction instrumentatio...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Thu May 28 16:21:48 PDT 2026
Branch: refs/heads/users/jdoerfert/openmp_kernel_name
Home: https://github.com/llvm/llvm-project
Commit: 16900328f1200be020d60ca71be0c2488b464e14
https://github.com/llvm/llvm-project/commit/16900328f1200be020d60ca71be0c2488b464e14
Author: Johannes Doerfert <jdoerfert.llvm at gmail.com>
Date: 2026-05-28 (Thu, 28 May 2026)
Changed paths:
M llvm/include/llvm/Transforms/IPO/Instrumentor.h
M llvm/lib/Transforms/IPO/Instrumentor.cpp
A llvm/test/Instrumentation/Instrumentor/cast.ll
A llvm/test/Instrumentation/Instrumentor/cast_config.json
A llvm/test/Instrumentation/Instrumentor/cast_crash.ll
A llvm/test/Instrumentation/Instrumentor/cast_filter.ll
A llvm/test/Instrumentation/Instrumentor/cast_filter_config.json
M llvm/test/Instrumentation/Instrumentor/default_config.json
Log Message:
-----------
[Instrumentor] Add Cast instruction instrumentation support
We now allow to have instrumentation opportunities for many instructions
(=opcodes) to bundle common classes together. Users can use filters on
the opcode, type-id, and size to statically select what they are
interested in.
Commit: cb07a023456acc1e4f9bceb3845503afbe73744c
https://github.com/llvm/llvm-project/commit/cb07a023456acc1e4f9bceb3845503afbe73744c
Author: Johannes Doerfert <jdoerfert.llvm at gmail.com>
Date: 2026-05-28 (Thu, 28 May 2026)
Changed paths:
M clang/include/clang/AST/OpenMPClause.h
M clang/include/clang/AST/RecursiveASTVisitor.h
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Sema/SemaOpenMP.h
M clang/lib/AST/OpenMPClause.cpp
M clang/lib/AST/StmtProfile.cpp
M clang/lib/CodeGen/CGOpenMPRuntime.cpp
M clang/lib/Parse/ParseOpenMP.cpp
M clang/lib/Sema/SemaOpenMP.cpp
M clang/lib/Sema/TreeTransform.h
M clang/lib/Serialization/ASTReader.cpp
M clang/lib/Serialization/ASTWriter.cpp
A clang/test/OpenMP/ompx_name_codegen.cpp
A clang/test/OpenMP/ompx_name_messages.c
A clang/test/OpenMP/ompx_name_messages_errors.c
M llvm/include/llvm/Frontend/OpenMP/OMP.td
M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
A offload/test/offloading/ompx_name.c
A offload/test/offloading/ompx_name_simple.c
Log Message:
-----------
[OpenMP] Introduce the ompx_name clause for kernel naming
This adds support for the ompx_name clause that allows users to specify
custom kernel names for OpenMP target offloading regions. The clause
accepts a string literal and overrides the default compiler-generated
kernel names.
Example usage:
#pragma omp target ompx_name("my_kernel")
{ ... }
The clause is supported on all target directives including:
- target
- target parallel [for] [simd]
- target simd
- target teams [distribute] [parallel for] [simd]
- target loop
- target parallel loop
- target teams loop
Changes include:
- Added OMPXNameClause to Clang AST
- Added clause parsing and semantic checking
- Added UserProvidedName field to TargetRegionEntryInfo
- Updated kernel name generation to use user-provided name when available
- Added comprehensive tests in clang/test/OpenMP and offload/test
Co-Authored-By: Claude (claude-sonnet-4.5) <noreply at anthropic.com>
Compare: https://github.com/llvm/llvm-project/compare/16900328f120%5E...cb07a023456a
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list