intel / intel-graphics-compiler

Other
605 stars 158 forks source link

Issues while building with LLVM12 #267

Closed anujm1 closed 1 year ago

anujm1 commented 1 year ago
r0/git/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp:412:31: error: ‘experimental_vector_reduce_or’ is not a member of ‘llvm::Intrinsic’; did you mean ‘experimental_vector_insert’?
[2022-12-06T21:01:52.813Z] |   412 |                    Intrinsic::experimental_vector_reduce_or;
[2022-12-06T21:01:52.813Z] |       |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2022-12-06T21:01:52.813Z] |       |                               experimental_vector_insert

The condition here:

https://github.com/intel/intel-graphics-compiler/blob/master/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp#L388

should probably be checking for LLVM11 instead of <=12 since the API was changed in 12?

https://github.com/llvm/llvm-project/commit/322d0afd875df66b36e4810a2b95c20a8f22ab9b

pszymich commented 1 year ago

Hi, the issue has been fixed with 7a90e931f5e6202c837fe2b915781bddc4c4b17e Thanks for spotting the issue