Files
compute-runtime/shared/offline_compiler/source/decoder/iga_wrapper.h
Daniel Bermond e0362a7c39 build: add missing headers for GCC 15
For using fixed width integer types[1], the `<cstdint>`[2]
C++ header needs to be explicitly included with GCC 15 due
to changes[3] in libstdc++.

For details, see the documentation[4] about porting to GCC 15.

[1] https://en.cppreference.com/w/cpp/types/integer
[2] https://en.cppreference.com/w/cpp/header/cstdint
[3] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84
[4] https://gcc.gnu.org/gcc-15/porting_to.html#cxx

Signed-off-by: Daniel Bermond <dbermond@archlinux.org>
2025-05-19 15:31:32 +02:00

44 lines
1.1 KiB
C++

/*
* Copyright (C) 2019-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "igfxfmid.h"
#include <cstdint>
#include <memory>
#include <string>
class MessagePrinter;
struct IgaWrapper : NEO::NonCopyableAndNonMovableClass {
IgaWrapper();
MOCKABLE_VIRTUAL ~IgaWrapper();
MOCKABLE_VIRTUAL bool tryDisassembleGenISA(const void *kernelPtr, uint32_t kernelSize, std::string &out);
MOCKABLE_VIRTUAL bool tryAssembleGenISA(const std::string &inAsm, std::string &outBinary);
MOCKABLE_VIRTUAL void setGfxCore(GFXCORE_FAMILY core);
MOCKABLE_VIRTUAL void setProductFamily(PRODUCT_FAMILY product);
MOCKABLE_VIRTUAL bool isKnownPlatform() const;
void setMessagePrinter(MessagePrinter &messagePrinter) {
this->messagePrinter = &messagePrinter;
}
protected:
MOCKABLE_VIRTUAL bool tryLoadIga();
struct Impl;
std::unique_ptr<Impl> pimpl;
MessagePrinter *messagePrinter = nullptr;
};
static_assert(NEO::NonCopyableAndNonMovable<IgaWrapper>);