Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
bolt/include/bolt/Core/BinaryFunction.h
Show First 20 Lines • Show All 1,748 Lines • ▼ Show 20 Lines | uint64_t getImageSize() const { | ||||
return getLayout().getMainFragment().getImageSize(); | return getLayout().getMainFragment().getImageSize(); | ||||
} | } | ||||
/// Return true if the function is a secondary fragment of another function. | /// Return true if the function is a secondary fragment of another function. | ||||
bool isFragment() const { return IsFragment; } | bool isFragment() const { return IsFragment; } | ||||
/// Returns if this function is a child of \p Other function. | /// Returns if this function is a child of \p Other function. | ||||
bool isChildOf(const BinaryFunction &Other) const { | bool isChildOf(const BinaryFunction &Other) const { | ||||
return llvm::is_contained(ParentFragments, &Other); | return ParentFragments.contains(&Other); | ||||
} | } | ||||
/// Set the profile data for the number of times the function was called. | /// Set the profile data for the number of times the function was called. | ||||
BinaryFunction &setExecutionCount(uint64_t Count) { | BinaryFunction &setExecutionCount(uint64_t Count) { | ||||
ExecutionCount = Count; | ExecutionCount = Count; | ||||
return *this; | return *this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 583 Lines • Show Last 20 Lines |