mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
2c18a4c0d9
commit
64b8de3c1d
@ -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.
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user