-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Description
Expected behavior
Build should succeed.
Actual behavior
Build fails with:
[ 1361s] /home/abuild/rpmbuild/BUILD/tvm-0.7.0/src/target/llvm/codegen_llvm.cc: In member function 'virtual llvm::Value* tvm::codegen::CodeGenLLVM::CreateIntrinsic(const tvm::tir::CallNode*)':
[ 1361s] /home/abuild/rpmbuild/BUILD/tvm-0.7.0/src/target/llvm/codegen_llvm.cc:772:41: error: no matching function for call to 'getName(llvm::Intrinsic::ID&, <brace-enclosed initializer list>)'
[ 1361s] 772 | << llvm::Intrinsic::getName(id, {});
[ 1361s] | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[ 1361s] In file included from /home/abuild/rpmbuild/BUILD/tvm-0.7.0/src/target/llvm/llvm_common.h:37,
[ 1361s] from /home/abuild/rpmbuild/BUILD/tvm-0.7.0/src/target/llvm/codegen_llvm.h:49,
[ 1361s] from /home/abuild/rpmbuild/BUILD/tvm-0.7.0/src/target/llvm/codegen_llvm.cc:25:
[ 1361s] /usr/include/llvm/IR/Intrinsics.h:56:13: note: candidate: 'llvm::StringRef llvm::Intrinsic::getName(llvm::Intrinsic::ID)'
[ 1361s] 56 | StringRef getName(ID id);
[ 1361s] | ^~~~~~~
[ 1361s] /usr/include/llvm/IR/Intrinsics.h:56:13: note: candidate expects 1 argument, 2 provided
[ 1361s] /usr/include/llvm/IR/Intrinsics.h:68:15: note: candidate: 'std::string llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>, llvm::Module*, llvm::FunctionType*)'
[ 1361s] 68 | std::string getName(ID Id, ArrayRef<Type *> Tys, Module *M,
[ 1361s] | ^~~~~~~
[ 1361s] /usr/include/llvm/IR/Intrinsics.h:68:15: note: candidate expects 4 arguments, 2 provided
[
Environment
TVM 0.7.0 on openSUSE Tumbleweed.
Steps to reproduce
Try to build with LLVM 13.