Reduce binaries sizes 2/n

Observed about 50MB reduction in overall binaries size (directory build))
when building all targets
with MSVC (Visual Studio 2022 17.3.0 preview 6)
using Debug 64 configuration.

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2022-12-08 14:23:49 +00:00
committed by Compute-Runtime-Automation
parent 75c0a2f7ee
commit 6993ed5c52
53 changed files with 847 additions and 847 deletions

View File

@@ -91,8 +91,8 @@ struct MatchCmd {
bool matchesAny = false;
};
constexpr int32_t AnyNumber = -1;
constexpr int32_t AtLeastOne = -2;
inline constexpr int32_t AnyNumber = -1;
inline constexpr int32_t AtLeastOne = -2;
inline std::string countToString(int32_t count) {
if (count == AnyNumber) {
return "AnyNumber";

View File

@@ -51,8 +51,8 @@ struct AllocationEvent { // NOLINT(clang-analyzer-optin.performance.Padding)
bool fastLeakDetectionEnabled = false;
};
constexpr auto maxEvents = 1024 * 1024;
constexpr auto fastEvents = 1024 * 1024;
inline constexpr auto maxEvents = 1024 * 1024;
inline constexpr auto fastEvents = 1024 * 1024;
extern AllocationEvent eventsAllocated[maxEvents];
extern AllocationEvent eventsDeallocated[maxEvents];
@@ -75,11 +75,11 @@ extern bool detailedAllocationLoggingActive;
extern bool fastLeakDetectionEnabled;
extern void (*deleteCallback)(void *);
constexpr auto nonfailingAllocation = static_cast<size_t>(-1);
constexpr auto invalidLeakIndex = static_cast<size_t>(-1);
inline constexpr auto nonfailingAllocation = static_cast<size_t>(-1);
inline constexpr auto invalidLeakIndex = static_cast<size_t>(-1);
// capture allocations call stacks to print them during memory leak in ULTs
constexpr bool captureCallStacks = false;
inline constexpr bool captureCallStacks = false;
int detectLeaks();
std::string printCallStack(const MemoryManagement::AllocationEvent &event);

View File

@@ -9,5 +9,5 @@
#include <cstdint>
namespace NEO {
constexpr uint32_t maxRootDeviceCount = 3u;
inline constexpr uint32_t maxRootDeviceCount = 3u;
} // namespace NEO