File: README.md

package info (click to toggle)
intel-graphics-compiler2 2.22.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 107,676 kB
  • sloc: cpp: 809,645; lisp: 288,070; ansic: 16,397; python: 4,010; yacc: 2,588; lex: 1,666; pascal: 314; sh: 186; makefile: 38
file content (43 lines) | stat: -rw-r--r-- 1,216 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!---======================= begin_copyright_notice ============================

Copyright (C) 2022 Intel Corporation

SPDX-License-Identifier: MIT

============================= end_copyright_notice ==========================-->

# VCB (VC BiF Compiler)

VCB is a tool for precompilation of BiF Modules. The primary usage is
to precompile emulation BiF.

VCB is statically linked with VCCodeGen library, so it can access
target-specific transformations.

It can be extended to other types of BiF Modules if necessary.

Currently, there are 2 primary modes of operation:

1. Compilation of input LLVM IR for a particular target.
Command line usage:

```
vcb -o out.bc -cpu <PLATFORM> <INPUT_FILE>

# PLATFORM - name of target (SKL, BDW, etc).
# INPUT_FILE - path to generic bitcode file.
```


2. Generation of code that allows VC compiler to obtain target-specific
precompiled emulation library.

```
vcb -BiFUnique -o out.cpp --symb <BifSymbol> <CONFIG_PATH>

# CONFIG_PATH - path to configuration file that contain information about
#               where to find platform-speicifc BiF for the requested
#               architectures.
# BifSymbol - prefix to use by internal variables in the generated code.
```