[Attributor][NFCI] Expose some nosync reasoning to outside users.
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 23 Jan 2022 20:06:22 +0000 (14:06 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 1 Feb 2022 07:07:50 +0000 (01:07 -0600)
commit3f0e670498cb923a7f8e8f779db660770e05ebc0
tree8a5bc4f21074fb20409edcc9b1bb751b218075b6
parenta5b6aef24e7a3f2a74cc4e716314d3f8d424d1c1
[Attributor][NFCI] Expose some nosync reasoning to outside users.

No-sync is a property that we need in more places as complex
transformations emerge. To simplify the query we provide an
`AA::isNoSyncInst` helper now and expose two existing helpers through
the `AANoSync` class.
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp