forked from OSchip/llvm-project
1abd9ffa37
Summary: Add a sequence number that identifies a ptx_kernel's parent Scop within a function to it's name to differentiate it from other kernels produced from the same function, yet different Scops. Kernels produced from different Scops can end up having the same name. Consider a function with 2 Scops and each Scop being able to produce just one kernel. Both of these kernels have the name "kernel_0". This can lead to the wrong kernel being launched when the runtime picks a kernel from its cache based on the name alone. This patch supplements D33985, by differentiating kernels across Scops as well. Previously (even before D33985) while profiling kernels generated through JIT e.g. Julia, [[ https://groups.google.com/d/msg/polly-dev/J1j587H3-Qw/mR-jfL16BgAJ | kernels associated with different functions, and even different SCoPs within a function, would be grouped together due to the common name ]]. This patch prevents this grouping and the kernels are reported separately. Reviewers: grosser, bollu Reviewed By: grosser Subscribers: mehdi_amini, nemanjai, pollydev, kbarton Tags: #polly Differential Revision: https://reviews.llvm.org/D35176 llvm-svn: 307814 |
||
---|---|---|
.. | ||
CodeGen | ||
Config | ||
Support | ||
Canonicalization.h | ||
DeLICM.h | ||
DependenceInfo.h | ||
FlattenAlgo.h | ||
FlattenSchedule.h | ||
LinkAllPasses.h | ||
Options.h | ||
PolyhedralInfo.h | ||
PruneUnprofitable.h | ||
RegisterPasses.h | ||
ScheduleOptimizer.h | ||
ScopBuilder.h | ||
ScopDetection.h | ||
ScopDetectionDiagnostic.h | ||
ScopInfo.h | ||
ScopPass.h | ||
Simplify.h |