Unify used flags in case of IR exclusion

Unifies usage of flags in case of IR exclusion from ocloc's output file.
When -exclude_ir parameter is active, then internal options passed to
IGC contain -exclude-ir-from-zebin to preserve consistency. Moreover,
when only -exclude-ir-from-zebin is present, then -exclude_ir is also set.

Related-To: NEO-6477
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
Patryk Wrobel
2021-12-16 16:15:46 +00:00
committed by Compute-Runtime-Automation
parent 617f65c285
commit 09eefb4968
5 changed files with 52 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ static constexpr ConstStringRef forceEmuInt32DivRemSP = "-cl-intel-force-emu-sp-
static constexpr ConstStringRef allowZebin = "-allow-zebin";
static constexpr ConstStringRef enableImageSupport = "-D__IMAGE_SUPPORT__=1";
static constexpr ConstStringRef optLevel = "-ze-opt-level=O";
static constexpr ConstStringRef excludeIrFromZebin = "-exclude-ir-from-zebin";
constexpr size_t nullterminateSize = 1U;
constexpr size_t spaceSeparatorSize = 1U;