Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/include/llvm/Analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(LLVM_TARGET_DEFINITIONS TargetLibraryInfo.td)
set(LLVM_TARGET_DEFINITIONS ../IR/RuntimeLibcalls.td)
tablegen(LLVM TargetLibraryInfo.inc -gen-target-library-info)
add_public_tablegen_target(analysis_gen)
11 changes: 7 additions & 4 deletions llvm/include/llvm/Analysis/TargetLibraryInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ class TargetLibraryInfoImpl {
LLVM_ABI TargetLibraryInfoImpl &operator=(const TargetLibraryInfoImpl &TLI);
LLVM_ABI TargetLibraryInfoImpl &operator=(TargetLibraryInfoImpl &&TLI);

/// Generated by tablegen.
void setTargetLibraryLibcallSets(const Triple &TT);

/// Searches for a particular function name.
///
/// If it is one of the known library functions, return true and set F to the
Expand Down Expand Up @@ -427,10 +430,10 @@ class TargetLibraryInfo {

/// Return the canonical name for a LibFunc. This should not be used for
/// semantic purposes, use getName instead.
static StringRef getStandardName(LibFunc F) {
return StringRef(TargetLibraryInfoImpl::StandardNamesStrTable.getCString(
TargetLibraryInfoImpl::StandardNamesOffsets[F]),
TargetLibraryInfoImpl::StandardNamesSizeTable[F]);
StringRef getStandardName(LibFunc F) const {
return StringRef(Impl->StandardNamesStrTable.getCString(
Impl->StandardNamesOffsets[F]),
Impl->StandardNamesSizeTable[F]);
}

StringRef getName(LibFunc F) const {
Expand Down
Loading