forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Arith] MLIR PresburgerSet compile fix mlir >= 160 (apache#15638)
Hi folks, Some fixes for MLIR based analyzer module introduced by apache#14690 . --- * Make CMake at par with LLVM info: ``` {...} -- Use llvm-config=llvm-config-64 -- LLVM libdir: /usr/lib64 -- Found MLIR -- Build with MLIR -- Set TVM_MLIR_VERSION=160 -- Found LLVM_INCLUDE_DIRS=/usr/include {...} -- USE_MKL : OFF -- USE_MLIR : ON -- USE_MSVC_MT : OFF {...} ``` * Fix several compilation errors: ``` error: cannot convert 'llvm::SmallVector<long int>' to 'llvm::ArrayRef<mlir::presburger::MPInt>' error: no matching function for call to 'tvm::IntImm::IntImm(tvm::runtime::DataType, mlir::presburger::MPInt&)' note: no known conversion for argument 2 from 'mlir::presburger::MPInt' to 'int64_t' {aka 'long int'} ``` Tested using: ```llvm/mlir 16.0.6```, ```llvm/mlir 15.0.7```, ```llvm/mlir 17.0.0rc3```
- Loading branch information
Showing
5 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters