[OpenMP] Emit remark on the captured call instead of the variable
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 4 Feb 2022 21:54:59 +0000 (16:54 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 4 Feb 2022 22:50:53 +0000 (17:50 -0500)
commit6b78526b1b87a0a0de2228ef3341b2fdc553ef7c
treed846f5623c36ffc92b050324641b721cc222e365
parent6abb70c2d00812350153f4299a2491fdc3810ac3
[OpenMP] Emit remark on the captured call instead of the variable

Changes the remark to emit on the function call that captures the globalized
variable instead of the globalized variable itself. The user should be able to
see which variable it was in the argument list of the function.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106980
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/OpenMP/globalization_remarks.ll
llvm/test/Transforms/OpenMP/remove_globalization.ll