Closed maleadt closed 3 years ago
Hm, I'm having troubles compiling that commit:
[09:27:36] ../IGC/VectorCompiler/lib/GenXCodeGen/GenXVectorDecomposer.cpp: In member function ‘bool llvm::VectorDecomposer::determineDecomposition(llvm::Instruction*)’:
[09:27:36] ../IGC/VectorCompiler/lib/GenXCodeGen/GenXVectorDecomposer.cpp:210:28: error: ‘isReadPredefReg’ is not a member of ‘llvm::GenXIntrinsic’
[09:27:36] if (GenXIntrinsic::isReadPredefReg(NewVal->getOperand(
[09:27:36] ^~~~~~~~~~~~~~~
[09:27:47] ../IGC/VectorCompiler/lib/GenXCodeGen/GenXPatternMatch.cpp: In member function ‘bool {anonymous}::MadMatcher::emit()’:
[09:27:47] ../IGC/VectorCompiler/lib/GenXCodeGen/GenXPatternMatch.cpp:1319:35: error: ‘getGenXMulIID’ is not a member of ‘llvm::GenXIntrinsic’
[09:27:47] auto IID = GenXIntrinsic::getGenXMulIID(S0, S1);
[09:27:47] ^~~~~~~~~~~~~
[09:27:47] ../IGC/VectorCompiler/lib/GenXCodeGen/GenXPatternMatch.cpp:1319:35: note: suggested alternative: ‘getGenXType’
[09:27:47] auto IID = GenXIntrinsic::getGenXMulIID(S0, S1);
[09:27:47] ^~~~~~~~~~~~~
[09:27:47] getGenXType
etc. Am I missing a dependency bump? I normally wait for releases and use the hashes from there. EDIT: https://github.com/intel/vc-intrinsics/commit/069ced1e8a408d8b602b3b210017603792df6260 does the job.
The fix works, thanks.
The following LLVM code:
... translated to SPIR-V using https://github.com/KhronosGroup/SPIRV-LLVM-Translator:
bug.spv.zip
... results in a failed assertion when loading with Level Zero or doing
ocloc -device kbl -spirv_input
:Seems similar to https://github.com/intel/intel-graphics-compiler/issues/159 (cc @aratajew). Tested on https://github.com/intel/intel-graphics-compiler/commit/5ef516712cb51d6fc92e88b28d48bf7548d2f0f6.