Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FTBFS] [llvm trunk] error: no matching function for call to ‘m_c_ICmp(llvm #2927

Closed
LW-archlinux opened this issue Dec 15, 2024 · 1 comment

Comments

@LW-archlinux
Copy link

spirv-llvm-translator rev b8b1b96 fails to build against llvm trunk rev 865260840441 .

Building against rev ab0dc290bca1 works fine.

/build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/OCLToSPIRV.cpp: In function ‘bool SPIRV::{anonymous}::usesSpvExtImageRaw10Raw12Constants(const llvm::CallInst*)’:
/build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/OCLToSPIRV.cpp:1435:28: error: no matching function for call to ‘m_c_ICmp(llvm::CmpInst::Predicate&, llvm::PatternMatch::class_match<llvm::Value>, llvm::PatternMatch::specific_intval64<false>)’
 1435 |       if (match(U, m_c_ICmp(Pred, m_Value(), m_SpecificInt(C)))) {
      |                    ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/OCLToSPIRV.cpp:50:
/usr/include/llvm/IR/PatternMatch.h:2737:1: note: candidate: ‘template<class LHS, class RHS> llvm::PatternMatch::CmpClass_match<LHS, RHS, llvm::ICmpInst, true> llvm::PatternMatch::m_c_ICmp(llvm::CmpPredicate&, const LHS&, const RHS&)’
 2737 | m_c_ICmp(CmpPredicate &Pred, const LHS &L, const RHS &R) {
      | ^~~~~~~~
/usr/include/llvm/IR/PatternMatch.h:2737:1: note:   template argument deduction/substitution failed:
/build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/OCLToSPIRV.cpp:1435:29: note:   cannot convert ‘Pred’ (type ‘llvm::CmpInst::Predicate’) to type ‘llvm::CmpPredicate&’
 1435 |       if (match(U, m_c_ICmp(Pred, m_Value(), m_SpecificInt(C)))) {
      |                             ^~~~
/usr/include/llvm/IR/PatternMatch.h:2742:49: note: candidate: ‘template<class LHS, class RHS> llvm::PatternMatch::CmpClass_match<LHS, RHS, llvm::ICmpInst, true> llvm::PatternMatch::m_c_ICmp(const LHS&, const RHS&)’
 2742 | inline CmpClass_match<LHS, RHS, ICmpInst, true> m_c_ICmp(const LHS &L,
      |                                                 ^~~~~~~~
/usr/include/llvm/IR/PatternMatch.h:2742:49: note:   candidate expects 2 arguments, 3 provided

spirv-llvm-translator-minimal-git-1:r2191.b8b1b96-1-x86_64-build.log

@svenvh
Copy link
Member

svenvh commented Dec 16, 2024

Should be fixed now that #2928 is merged, but please re-open if the problem persists.

@svenvh svenvh closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants