mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Cleanup includes 18
Cleaned up files: shared/source/command_stream/command_stream_receiver_hw.h shared/source/compiler_interface/compiler_interface.h shared/source/direct_submission/direct_submission_hw.h shared/source/helpers/dirty_state_helpers.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
98e0557a4c
commit
a2fe929f0c
@@ -36,6 +36,17 @@ enum CachingMode {
|
||||
PreProcess
|
||||
};
|
||||
|
||||
void TranslationOutput::makeCopy(MemAndSize &dst, CIF::Builtins::BufferSimple *src) {
|
||||
if ((nullptr == src) || (src->GetSizeRaw() == 0)) {
|
||||
dst.mem.reset();
|
||||
dst.size = 0U;
|
||||
return;
|
||||
}
|
||||
|
||||
dst.size = src->GetSize<char>();
|
||||
dst.mem = ::makeCopy(src->GetMemory<void>(), src->GetSize<char>());
|
||||
}
|
||||
|
||||
CompilerInterface::CompilerInterface()
|
||||
: cache() {
|
||||
}
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/compiler_interface/compiler_cache.h"
|
||||
#include "shared/source/helpers/string.h"
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
#include "shared/source/utilities/arrayref.h"
|
||||
#include "shared/source/utilities/spinlock.h"
|
||||
|
||||
@@ -22,6 +19,8 @@
|
||||
|
||||
namespace NEO {
|
||||
enum class SipKernelType : std::uint32_t;
|
||||
class OsLibrary;
|
||||
class CompilerCache;
|
||||
class Device;
|
||||
|
||||
using specConstValuesMap = std::unordered_map<uint32_t, uint64_t>;
|
||||
@@ -78,16 +77,7 @@ struct TranslationOutput {
|
||||
dst.assign(src->GetMemory<char>(), src->GetSize<char>());
|
||||
}
|
||||
|
||||
static void makeCopy(MemAndSize &dst, CIF::Builtins::BufferSimple *src) {
|
||||
if ((nullptr == src) || (src->GetSizeRaw() == 0)) {
|
||||
dst.mem.reset();
|
||||
dst.size = 0U;
|
||||
return;
|
||||
}
|
||||
|
||||
dst.size = src->GetSize<char>();
|
||||
dst.mem = ::makeCopy(src->GetMemory<void>(), src->GetSize<char>());
|
||||
}
|
||||
static void makeCopy(MemAndSize &dst, CIF::Builtins::BufferSimple *src);
|
||||
};
|
||||
|
||||
struct SpecConstantInfo {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/helpers/debug_helpers.h"
|
||||
#include "shared/source/helpers/validators.h"
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "cif/import/library_api.h"
|
||||
#include "ocl_igc_interface/ocl_translation_output.h"
|
||||
|
||||
Reference in New Issue
Block a user