parsifal-47 commented on code in PR #17547:
URL: https://github.com/apache/tvm/pull/17547#discussion_r1863984938
##########
src/target/llvm/codegen_cpu.cc:
##########
@@ -731,7 +731,11 @@ void CodeGenCPU::CreateStaticInit(const std::string&
init_fname, const Stmt& bod
llvm::Value* CodeGenCPU::GetPackedFuncHandle(const std::string& fname) {
// We will store the packed function handle in global space.
// Initialize it during the first call.
+#if TVM_LLVM_VERSION >= 200
+ llvm::DataLayout layout = module_->getDataLayout();
Review Comment:
updated, thank you!
##########
src/target/llvm/codegen_cpu.cc:
##########
@@ -1297,7 +1301,11 @@ void CodeGenCPU::DefineFunctionRegistry(Array<String>
func_names) {
}
llvm::ArrayType* t_tvm_crt_func_ptrs =
llvm::ArrayType::get(ftype_tvm_backend_packed_c_func_->getPointerTo(),
funcs.size());
+#if TVM_LLVM_VERSION >= 200
+ llvm::DataLayout layout = module_->getDataLayout();
Review Comment:
updated, thank you!
--
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]