File: function.proto

package info (click to toggle)
intel-graphics-compiler 1.0.12504.6-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 83,912 kB
  • sloc: cpp: 910,147; lisp: 202,655; ansic: 15,197; python: 4,025; yacc: 2,241; lex: 1,570; pascal: 244; sh: 104; makefile: 25
file content (60 lines) | stat: -rw-r--r-- 1,544 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*========================== begin_copyright_notice ============================

Copyright (C) 2021-2022 Intel Corporation

SPDX-License-Identifier: MIT

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

syntax = "proto3";

import "Metrics/proto_schema/variable_info.proto";
import "Metrics/proto_schema/kernel_arguments.proto";
import "Metrics/proto_schema/parallelization_enum.proto";
import "Metrics/proto_schema/function_calls.proto";
import "Metrics/proto_schema/instruction_stats.proto";
import "Metrics/proto_schema/emulated_calls.proto";
import "Metrics/proto_schema/mem_alloc_stats.proto";
import "Metrics/proto_schema/code_reference.proto";
import "Metrics/proto_schema/local_reg_stats.proto";
import "Metrics/proto_schema/cfg_stats.proto";
import "Metrics/proto_schema/cost_model_stats.proto";
import "Metrics/proto_schema/spillFill_stats.proto";

package IGC_METRICS;

  enum FunctionType {
    KERNEL = 0;
    FUNCTION = 1;
  }

message Function
{
  string name = 1;

  CodeRef funcLoc = 2;

  FunctionType type = 3;

  repeated VarInfo variables = 4;
// Only for Kernels
  repeated KernelArg arguments = 5;

// Only for DPC++ and OpenMP
  optional ParallelizationType parallelization = 6;

  repeated FuncCalls functionCalls = 7;
  repeated FuncEmuCalls emuFunctionCalls = 8;

  InstrStats instruction_stats = 9;

  MemAllocStats memory_stats = 10;

  LocalRegStats local_reg_stats = 11;

  CFGStats cfg_stats = 12;

  CostModelStats costModel_stats = 13;

  SpillFillStats spillFill_stats = 14;
}