This is a protoype, RFC will follow.
See https://lists.llvm.org/pipermail/llvm-dev/2021-March/149117.html
for a rational.
Paths
| Differential D98516
[WIP] Introduce the "implements" string attribute Needs ReviewPublic Authored by jdoerfert on Mar 12 2021, 8:46 AM.
Details Summary This is a protoype, RFC will follow. See https://lists.llvm.org/pipermail/llvm-dev/2021-March/149117.html
Diff Detail
Event TimelineComment Actions
I guess we can emit a debug message but there is little we can do in the IR wrt. error reporting. The clang part could check though. Comment Actions Nice. And, also, a bit scary as it can potentially be used to replace an arbitrary function, not just a math intrinsic normally mapped to libcall. Perhaps it would make sense to only allow whitelisted functions?
Revision Contents
Diff 330259 llvm/include/llvm/Transforms/IPO/ImplementsAttrResolver.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/IPO/CMakeLists.txt
llvm/lib/Transforms/IPO/ImplementsAttrResolver.cpp
llvm/test/Transforms/ImplementsAttrResolver/intrinsic_implementation.ll
|
clang-tidy: warning: #endif for a header guard should reference the guard macro in a comment [llvm-header-guard]
not useful