feature: use llvm bc for ir-level linking as alternative to spirv

This forces clCompile outputs (clLink inputs) to use llvm bc format
unless underlying compiler's preferred IR is spirV.

Related-To: NEO-16362

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
Chodor, Jaroslaw
2025-10-12 17:42:38 +00:00
committed by Compute-Runtime-Automation
parent 8e60b53415
commit 6a280a4790
3 changed files with 26 additions and 0 deletions

View File

@@ -211,6 +211,9 @@ TranslationOutput::ErrorCode CompilerInterface::compile(
if (outType == IGC::CodeType::undefined) {
outType = getPreferredIntermediateRepresentation(device);
if (outType != IGC::CodeType::spirV) {
outType = IGC::CodeType::llvmBc;
}
}
CIF::CIFMain *fclMain = nullptr;