[OpenMP][FIX] Do not use InaccessibleMemOrArgMemOnly for barrier and flush
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 22 Apr 2020 15:17:32 +0000 (10:17 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 22 Apr 2020 16:10:54 +0000 (11:10 -0500)
commit68a27587c2acb9b8772d75e552adcc22836844c2
treec142d4732b1a629a815ccc5838effd96bc7ca88a
parent2dea3f129878e929e5d1f00b91a622eb1ec8be4e
[OpenMP][FIX] Do not use InaccessibleMemOrArgMemOnly for barrier and flush

This was reported as PR45635, committed first as
72a9e7c926f4e32f209e528ec407fe526da5587e, reverted by
188f5cde9635a29a3f20ee2a73abd02890a752c7, and now recommitted with the
test change.
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/test/Transforms/OpenMP/add_attributes.ll