[llvm] [Analysis] Move TargetLibraryInfo data to TableGen (PR #165009)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 25 03:59:26 PDT 2025
================
@@ -177,7 +174,7 @@ class TargetLibraryInfoImpl {
/// Forces a function to be marked as available and provide an alternate name
/// that must be used.
void setAvailableWithName(LibFunc F, StringRef Name) {
- if (StandardNames[F] != Name) {
+ if (StandardNamesStrTable.getCString(StandardNamesOffsets[F]) != Name) {
----------------
arsenm wrote:
It's better to include the string lengths and void the strlen cost here
https://github.com/llvm/llvm-project/pull/165009
More information about the llvm-commits
mailing list