Files
intel-graphics-compiler/visa/include/KernelInfo.h
Lukasz Wesierski 04c9de4bf2 Update for IGC-Metrics
1. Updated the way how the metrics are collected from the debug info.
2. Added cost-model for the SIMD16
2021-12-13 22:08:27 +01:00

66 lines
1.1 KiB
C++

/*========================== begin_copyright_notice ============================
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef KERNELINFO_
#define KERNELINFO_
#include <string>
#include <map>
class VarInfo
{
public:
enum AddressModel {
GLOBAL = 0,
LOCAL = 1
};
enum MemAccess {
NONE = 0,
BLOCKED = 1,
STATEFUL = 2,
STATELESS = 3,
ATOMIC = 4
};
int lineNb;
const char* srcFilename;
int size;
short type;
AddressModel addrModel;
MemAccess memoryAccess;
bool isSpill;
bool isUniform;
bool isConst;
bool promoted2GRF;
// BankConflictInfo
int bc_count;
int bc_sameBank;
int bc_twoSrc;
};
class KERNEL_INFO
{
public:
std::map<int, VarInfo*> variables;
KERNEL_INFO() { }
~KERNEL_INFO()
{
for (auto i = variables.begin(); i != variables.end(); ++i)
{
delete i->second;
}
variables.clear();
}
};
#endif