[LLVM] Add libatomic load/store functions to TargetLibraryInfo
authorGui Andrade <guiand@google.com>
Sat, 18 Jul 2020 03:18:48 +0000 (03:18 +0000)
committerGui Andrade <guiand@google.com>
Sat, 18 Jul 2020 03:18:48 +0000 (03:18 +0000)
commitc42509413f69667361e93b5834fe368bfa4a6e82
treec2a30f31ca476b6e70dbe91b151a786aef4ee48b
parent780528d9da707b15849d6c9711cc3ab19f6c7f00
[LLVM] Add libatomic load/store functions to TargetLibraryInfo

This allows treating these functions like libcalls.
This patch is a prerequisite to instrumenting them in MSAN: https://reviews.llvm.org/D83337

Differential Revision: https://reviews.llvm.org/D83361
llvm/include/llvm/Analysis/TargetLibraryInfo.def
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/unittests/Analysis/TargetLibraryInfoTest.cpp