apache / tvm

Open deep learning compiler stack for cpu, gpu and specialized accelerators
https://tvm.apache.org/
Apache License 2.0
11.82k stars 3.48k forks source link

[LLVM][Arith] Presburger compile fix for MLIR/LLVM 19.x #17469

Closed cbalint13 closed 1 month ago

cbalint13 commented 1 month ago

Compile fixes for the optional mlir presburger module using latest LLVM 19.x branch.

tvm-0.18-build/tvm/src/arith/presburger_set.cc:219:33: error: no member named 'MPInt' in namespace 'mlir::presburger'
  219 |   SmallVector<mlir::presburger::MPInt> coeffs;
      |               ~~~~~~~~~~~~~~~~~~^
tvm-0.18-build/tvm/src/arith/presburger_set.cc:227:40: error: no member named 'MPInt' in namespace 'mlir::presburger'
  227 |     coeffs.push_back(mlir::presburger::MPInt(*as_const_int(it)));
      |                      ~~~~~~~~~~~~~~~~~~^
[ 18%] Building CXX object CMakeFiles/tvm_objs.dir/src/auto_scheduler/feature.cc.o
2 errors generated.
cbalint13 commented 1 month ago

Cc @quic-sanirudh @wrongtest-intellif