mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 03:20:47 +08:00
refactor: store special relocation names as string_view
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6f2e8b7544
commit
49293fcac6
@@ -193,8 +193,8 @@ struct LinkerInput : NEO::NonCopyableAndNonMovableClass {
|
||||
};
|
||||
|
||||
struct Linker {
|
||||
inline static const std::string subDeviceID = "__SubDeviceID";
|
||||
inline static const std::string perThreadOff = "__INTEL_PER_THREAD_OFF";
|
||||
inline static constexpr std::string_view subDeviceID = "__SubDeviceID";
|
||||
inline static constexpr std::string_view perThreadOff = "__INTEL_PER_THREAD_OFF";
|
||||
|
||||
using RelocationInfo = LinkerInput::RelocationInfo;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <type_traits>
|
||||
|
||||
namespace NEO {
|
||||
@@ -20,7 +20,7 @@ namespace NEO {
|
||||
struct KernelDescriptor;
|
||||
struct RootDeviceEnvironment;
|
||||
|
||||
inline const std::string implicitArgsRelocationSymbolName = "__INTEL_PATCH_CROSS_THREAD_OFFSET_OFF_R0";
|
||||
inline constexpr std::string_view implicitArgsRelocationSymbolName = "__INTEL_PATCH_CROSS_THREAD_OFFSET_OFF_R0";
|
||||
|
||||
namespace ImplicitArgsHelper {
|
||||
std::array<uint8_t, 3> getDimensionOrderForLocalIds(const uint8_t *workgroupDimensionsOrder, std::optional<std::pair<bool /* localIdsGeneratedByRuntime */, uint32_t /* walkOrderForHwGenerationOfLocalIds */>> hwGenerationOfLocalIdsParams);
|
||||
|
||||
Reference in New Issue
Block a user