We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70399da commit 7831a79Copy full SHA for 7831a79
src/target/llvm/codegen_hexagon.cc
@@ -85,7 +85,9 @@ class CodeGenHexagon final : public CodeGenCPU {
85
llvm::Module* GetModulePtr() const { return module_.get(); }
86
87
uint64_t GetTypeSizeInBits(llvm::Type* type) const {
88
-#if TVM_LLVM_VERSION >= 100
+#if TVM_LLVM_VERSION >= 160
89
+ return data_layout_->getTypeSizeInBits(type).getFixedValue();
90
+#elif TVM_LLVM_VERSION >= 100
91
return data_layout_->getTypeSizeInBits(type).getFixedSize();
92
#else
93
return data_layout_->getTypeSizeInBits(type);
0 commit comments