|
GTPin
|
Collection of the High-Level Instrumentation (HLI) modules. More...
#include <igt_hli_library.h>
Public Member Functions | |
| virtual IGtHliModuleHandle | AddModule (ConstByteSpan spirv, const char *name=nullptr, bool isScalar=true)=0 |
| Add an HLI module to this library. | |
| virtual IGtHliModuleHandle | LoadModule (const char *fileName, const char *name=nullptr, bool isScalar=true)=0 |
| Load an HLI module from the specified file and add it to this library. | |
| virtual IGtHliModuleHandle | CompileModule (const char *source, GtHliLanguage language=GtHliLanguage::OPENCL_C, GtHliCompilationOptions options={}, const char *name=nullptr, bool isScalar=true)=0 |
| Compile the specifed source to the SPIR-V representation, and add the compiled module to this library. | |
| virtual IGtHliModuleHandle | CompileModuleFromFile (const char *filePath, GtHliLanguage language=GtHliLanguage::OPENCL_C, GtHliCompilationOptions options={}, const char *name=nullptr, bool isScalar=true)=0 |
| Compile the specifed source file to the SPIR-V representation, and add the compiled module to this library. | |
| virtual uint32_t | NumModules () const =0 |
| virtual IGtHliModuleHandle | GetModule (uint32_t ordNum) const =0 |
| Get handle to the HLI module specified by its ordinal number. | |
| virtual bool | HasModule (IGtHliModuleHandle moduleHandle) const =0 |
| Check to see if this library contains HLI module with the specified handle. | |
| virtual IGtHliModuleHandle | FindModule (const char *name) const =0 |
| Find HLI module with the specified name. | |
Collection of the High-Level Instrumentation (HLI) modules.
The HLI library contains HLI modules, compiled to the SPIR-V representation.
| virtual IGtHliModuleHandle gtpin::IGtHliLibrary::AddModule | ( | ConstByteSpan | spirv, |
| const char * | name = nullptr, |
||
| bool | isScalar = true |
||
| ) | [pure virtual] |
Add an HLI module to this library.
| [in] | spirv | Content of the HLI module in the SPIRV format |
| [in] | name | Optional name of the module |
| [in] | isScalar | true - always build this HLI module in SIMD1 false - build this HLI module in SIMD of the module being instrumented |
| virtual IGtHliModuleHandle gtpin::IGtHliLibrary::CompileModule | ( | const char * | source, |
| GtHliLanguage | language = GtHliLanguage::OPENCL_C |
||
| ) | [pure virtual] |
Compile the specifed source to the SPIR-V representation, and add the compiled module to this library.
| [in] | source | Source code of the HLI module |
| [in] | language | The source language |
| [in] | options | The module's compilation options |
| [in] | name | Optional name of the module |
| [in] | isScalar | true - always build this HLI module in SIMD1 false - build this HLI module in SIMD of the module being instrumented |
| virtual IGtHliModuleHandle gtpin::IGtHliLibrary::CompileModuleFromFile | ( | const char * | filePath, |
| GtHliLanguage | language = GtHliLanguage::OPENCL_C |
||
| ) | [pure virtual] |
Compile the specifed source file to the SPIR-V representation, and add the compiled module to this library.
| [in] | filePath | Path of the file that contains source code of the HLI module |
| [in] | language | The source language |
| [in] | options | The module's compilation options |
| [in] | name | Optional name of the module |
| [in] | isScalar | true - always build this HLI module in SIMD1 false - build this HLI module in SIMD of the module being instrumented |
| virtual IGtHliModuleHandle gtpin::IGtHliLibrary::FindModule | ( | const char * | name | ) | const [pure virtual] |
Find HLI module with the specified name.
| [in] | name | The name assigned to the module |
| virtual IGtHliModuleHandle gtpin::IGtHliLibrary::GetModule | ( | uint32_t | ordNum | ) | const [pure virtual] |
Get handle to the HLI module specified by its ordinal number.
| virtual bool gtpin::IGtHliLibrary::HasModule | ( | IGtHliModuleHandle | moduleHandle | ) | const [pure virtual] |
Check to see if this library contains HLI module with the specified handle.
| [in] | moduleHandle | The handle to be checked |
| virtual IGtHliModuleHandle gtpin::IGtHliLibrary::LoadModule | ( | const char * | fileName, |
| const char * | name = nullptr, |
||
| bool | isScalar = true |
||
| ) | [pure virtual] |
Load an HLI module from the specified file and add it to this library.
| [in] | fileName | Full name of the file that contains HLI module in the SPIRV format |
| [in] | name | Optional name of the module |
| [in] | isScalar | true - always build this HLI module in SIMD1 false - build this HLI module in SIMD of the module being instrumented |
| virtual uint32_t gtpin::IGtHliLibrary::NumModules | ( | ) | const [pure virtual] |
Copyright (C) 2013-2025 Intel Corporation
SPDX-License-Identifier: MIT
1.7.4