Prepare offline compiler to add -gen_file option

Add dummy option to ocloc cmd. This is a preparation to add
a new option that will control dumping gen file.

Signed-off-by: Mateusz Borzyszkowski <mateusz.borzyszkowski@intel.com>
This commit is contained in:
Mateusz Borzyszkowski
2022-02-16 12:01:15 +00:00
committed by Compute-Runtime-Automation
parent 2c18a4c0d9
commit 64b8de3c1d
2 changed files with 5 additions and 0 deletions

View File

@ -666,6 +666,8 @@ int OfflineCompiler::parseCommandLine(size_t numArgs, const std::vector<std::str
inputFileSpirV = true;
} else if ("-cpp_file" == currArg) {
useCppFile = true;
} else if ("-gen_file" == currArg) {
useGenFile = true;
} else if (("-options" == currArg) && hasMoreArgs) {
options = argv[argIndex + 1];
argIndex++;
@ -1021,6 +1023,8 @@ Usage: ocloc [compile] -file <filename> -device <device_type> [-output <filename
-cpp_file Will generate c++ file with C-array
containing Intel Compute device binary.
-gen_file Will generate gen file.
-output_no_suffix Prevents ocloc from adding family name suffix.
--help Print this usage message.

View File

@ -134,6 +134,7 @@ class OfflineCompiler {
bool useLlvmText = false;
bool useLlvmBc = false;
bool useCppFile = false;
bool useGenFile = false;
bool useOptionsSuffix = false;
bool quiet = false;
bool onlySpirV = false;