Skip to content

Commit

Permalink
different llvm api
Browse files Browse the repository at this point in the history
  • Loading branch information
joshherr-quic committed Jun 30, 2022
1 parent 88a13f7 commit d374ab8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/target/llvm/codegen_hexagon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ class CodeGenHexagon final : public CodeGenCPU {
llvm::Module* GetModulePtr() const { return module_.get(); }

uint64_t GetTypeSizeInBits(llvm::Type* type) const {
#if TVM_LLVM_VERSION >= 110
#if TVM_LLVM_VERSION >= 100
return data_layout_->getTypeSizeInBits(type).getFixedSize();
#elif TVM_LLVM_VERSION >= 100
return data_layout_->getTypeSizeInBits(type).getFixedValue();
#else
return data_layout_->getTypeSizeInBits(type);
#endif
Expand Down

0 comments on commit d374ab8

Please sign in to comment.