File: visaBuilder_interface.h

package info (click to toggle)
intel-graphics-compiler2 2.24.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 113,504 kB
  • sloc: cpp: 812,849; lisp: 288,219; ansic: 102,423; python: 4,010; yacc: 2,588; lex: 1,666; pascal: 318; sh: 162; makefile: 38
file content (29 lines) | stat: -rw-r--r-- 1,273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*========================== begin_copyright_notice ============================

Copyright (C) 2017-2021 Intel Corporation

SPDX-License-Identifier: MIT

============================= end_copyright_notice ===========================*/

#include "JitterDataStruct.h"
#include "RelocationInfo.h"
#include "VISABuilderAPIDefinition.h"
#include "inc/common/sku_wa.h"
#include "visa_igc_common_header.h"
#include "visa_wa.h"

// Entry point to the vISA finalizer. Once a vISA builder is created, one can
// create kernels, add variables and append instructions, and compile it to
// native ISA.
extern "C" int CreateVISABuilder(VISABuilder *&builder, vISABuilderMode mode,
                                 VISA_BUILDER_OPTION builderOption,
                                 TARGET_PLATFORM platform, int numArgs,
                                 const char *flags[], const WA_TABLE *pWaTable);
// Destroy the vISA builder and release any internal resources used by it. Note
// that it does not free compilation output such as the kernel binary and debug
// info, as they may have longer life time than the builder itself.
extern "C" int DestroyVISABuilder(VISABuilder *&builder);

// Interface to free the kernel ISA and debug info binary.
extern "C" void freeBlock(void *ptr);