feature: Add debug/release variable prefixes

Resolves:  NEO-6357
Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2023-07-20 05:54:03 +00:00
committed by Compute-Runtime-Automation
parent 6fca8ee195
commit ec95d9314a
24 changed files with 1363 additions and 67 deletions

View File

@@ -10,7 +10,12 @@
#include "level_zero/core/source/compiler_interface/l0_reg_path.h"
#include <string>
#include <vector>
namespace NEO {
std::vector<const char *> validL0Prefixes;
std::vector<NEO::DebugVarPrefix> validL0PrefixTypes;
bool ApiSpecificConfig::isStatelessCompressionSupported() {
return false;
}
@@ -51,4 +56,20 @@ const char *ApiSpecificConfig::getRegistryPath() {
return L0::registryPath;
}
void ApiSpecificConfig::initPrefixes() {
validL0Prefixes.push_back("NEO_L0_");
validL0Prefixes.push_back("NEO_");
validL0Prefixes.push_back("");
validL0PrefixTypes.push_back(DebugVarPrefix::Neo_L0);
validL0PrefixTypes.push_back(DebugVarPrefix::Neo);
validL0PrefixTypes.push_back(DebugVarPrefix::None);
}
const std::vector<const char *> &ApiSpecificConfig::getPrefixStrings() {
return validL0Prefixes;
}
const std::vector<DebugVarPrefix> &ApiSpecificConfig::getPrefixTypes() {
return validL0PrefixTypes;
}
} // namespace NEO