mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
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:
committed by
Compute-Runtime-Automation
parent
8e60b53415
commit
6a280a4790
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user