Skip to content

Commit adc9d32

Browse files
committed
add documentary comments above public functions
1 parent eae8525 commit adc9d32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/include/llvm/CGData/StableFunctionMap.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,16 @@ struct StableFunctionMap {
127127
/// \returns true if there is no stable function entry.
128128
bool empty() const { return size() == 0; }
129129

130+
/// \returns true if there is an entry for the given function hash.
131+
/// This does not trigger lazy loading.
130132
bool contains(HashFuncsMapType::key_type FunctionHash) const {
131133
return HashToFuncs.count(FunctionHash) > 0;
132134
}
133135

136+
/// \returns the stable function entries for the given function hash. If the
137+
/// map is lazily loaded, it will deserialize the entries if it is not already
138+
/// done, other requests to the same hash at the same time will be blocked
139+
/// until the entries are deserialized.
134140
const StableFunctionEntries &
135141
at(HashFuncsMapType::key_type FunctionHash) const;
136142

0 commit comments

Comments
 (0)