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


##########
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:
   @lhutton1 
   
   > Thanks, that works now :)
   
   Also thanks for the catch !
   
   Sorry for the confusion my double checks took **some longer time**
   The threshold of  ```getter``` turned to be at ```>= 120``` after exhaustive 
checks.
   



-- 
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