summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorValentin Clement (バレンタイン クレメン) <clementval@gmail.com>2024-07-11 09:36:35 -0700
committerGitHub <noreply@github.com>2024-07-11 09:36:35 -0700
commite66ea43a399a1d70cbe3e4ed6adc77b2570cc51f (patch)
treea42df6239cfb56e0395b390ef5ab19c513ef9106 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parente16882fc7416a30d56d5b5a19d549ca7c653e668 (diff)
[flang][cuda] Improve data transfer detection by filtering symbols (#98378)
The current data transfer detection was collecting too many symbol and made wrong decision. This patch introduces a new function `CollectCudaSymbols` that is different than `CollectSymbols` and collect only symbol of interest for cuda data transfer in an expression. Currently two cases where symbols are filtered out are: - array subscripts: only the array symbol is on interest, the indexing can be filtered out - function arguments: symbols of the function arguments are filtered out. This fix some false positive data transfer and implicit data transfer. More filtering might be needed and will be added as follow up patches.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions