[llvm] r370947 - [TargetLibraryInfo] Define enumerator for no library function (NFC)
Evandro Menezes via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 11:15:59 PDT 2019
Author: evandro
Date: Wed Sep 4 11:15:58 2019
New Revision: 370947
URL: http://llvm.org/viewvc/llvm-project?rev=370947&view=rev
Log:
[TargetLibraryInfo] Define enumerator for no library function (NFC)
Add a null enumerator do designate no library function.
Modified:
llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h
llvm/trunk/lib/Analysis/TargetLibraryInfo.cpp
Modified: llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h?rev=370947&r1=370946&r2=370947&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h Wed Sep 4 11:15:58 2019
@@ -30,11 +30,12 @@ struct VecDesc {
unsigned VectorizationFactor;
};
- enum LibFunc {
+ enum LibFunc : unsigned {
#define TLI_DEFINE_ENUM
#include "llvm/Analysis/TargetLibraryInfo.def"
- NumLibFuncs
+ NumLibFuncs,
+ NotLibFunc
};
/// Implementation of the target library information.
Modified: llvm/trunk/lib/Analysis/TargetLibraryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/TargetLibraryInfo.cpp?rev=370947&r1=370946&r2=370947&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/TargetLibraryInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/TargetLibraryInfo.cpp Wed Sep 4 11:15:58 2019
@@ -1478,6 +1478,7 @@ bool TargetLibraryInfoImpl::isValidProto
return false;
}
case LibFunc::NumLibFuncs:
+ case LibFunc::NotLibFunc:
break;
}
More information about the llvm-commits
mailing list