lhutton1 commented on code in PR #16808:
URL: https://github.com/apache/tvm/pull/16808#discussion_r1542623104


##########
src/target/llvm/codegen_llvm.cc:
##########
@@ -1871,7 +1871,11 @@ llvm::Value* CodeGenLLVM::VisitExpr_(const 
BroadcastNode* op) {
   value = builder_->CreateInsertElement(undef, value, zero);
 #if TVM_LLVM_VERSION >= 110
   llvm::ElementCount ec =
+#if TVM_LLVM_VERSION >= 160
       llvm::ElementCount::get(dtype.get_lanes_or_vscale_factor(), 
dtype.is_scalable_vector());
+#else
+      llvm::ElementCount(dtype.get_lanes_or_vscale_factor(), 
dtype.is_scalable_vector());
+#endif

Review Comment:
   Curious about this change, I tried building with llvm-13 locally but it 
failed. Also it seems the build for ci-cpu (which uses llvm-15) also failed: 
https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-cpu/detail/PR-16808/2/pipeline.
 What version of llvm caused the failure?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to