/* * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/utilities/arrayref.h" #include "shared/source/utilities/const_stringref.h" #include #include #include class OclocArgHelper; namespace NEO { namespace Ar { struct ArEncoder; } class OfflineCompiler; bool requestedFatBinary(const std::vector &args, OclocArgHelper *helper); inline bool requestedFatBinary(int argc, const char *argv[], OclocArgHelper *helper) { std::vector args; args.assign(argv, argv + argc); return requestedFatBinary(args, helper); } int buildFatBinary(const std::vector &args, OclocArgHelper *argHelper); inline int buildFatBinary(int argc, const char *argv[], OclocArgHelper *argHelper) { std::vector args; args.assign(argv, argv + argc); return buildFatBinary(args, argHelper); } template void getProductsAcronymsForTarget(std::vector &out, Target target, OclocArgHelper *argHelper); std::vector getProductsForRange(unsigned int productFrom, unsigned int productTo, OclocArgHelper *argHelper); std::vector getTargetProductsForFatbinary(ConstStringRef deviceArg, OclocArgHelper *argHelper); int buildFatBinaryForTarget(int retVal, const std::vector &argsCopy, std::string pointerSize, Ar::ArEncoder &fatbinary, OfflineCompiler *pCompiler, OclocArgHelper *argHelper, const std::string &deviceConfig); int appendGenericIr(Ar::ArEncoder &fatbinary, const std::string &inputFile, OclocArgHelper *argHelper, std::string options); std::vector createEncodedElfWithSpirv(const ArrayRef &spirv, const ArrayRef &options); } // namespace NEO