Skip to content

Commit

Permalink
Bump llvm (#646)
Browse files Browse the repository at this point in the history
* update llvm and mlir-aie

* Update CMakeLists.txt
  • Loading branch information
fifield authored Jul 3, 2024
1 parent 0fb668c commit ad09060
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
10 changes: 0 additions & 10 deletions mlir/lib/Conversion/AIRLoweringPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,16 +1076,6 @@ class AIRLoweringPass : public air::impl::AIRLoweringBase<AIRLoweringPass> {
signalPassFailure();
}

RewritePatternSet cast_patterns(context);
populateReconcileUnrealizedCastsPatterns(cast_patterns);
ConversionTarget cast_target(getContext());
cast_target.addIllegalOp<UnrealizedConversionCastOp>();
if (failed(applyPartialConversion(module, cast_target,
std::move(cast_patterns)))) {
emitError(UnknownLoc::get(context), "error lowering air dialect\n");
signalPassFailure();
}

// If scf parallel loops containing memcpy ops exist in the same scope as
// herd load, then attempt to serialize the asynchronous control programs.
module.walk([&](func::FuncOp f) {
Expand Down
16 changes: 8 additions & 8 deletions mlir/lib/Transform/AIRLinalgCodegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1991,9 +1991,9 @@ void transform::LinalgTileOp::print(OpAsmPrinter &p) {

void transform::LinalgTileOp::getEffects(
SmallVectorImpl<MemoryEffects::EffectInstance> &effects) {
consumesHandle(getTarget(), effects);
onlyReadsHandle(getDynamicSizes(), effects);
producesHandle(getTiledLinalgOp(), effects);
consumesHandle(getTargetMutable(), effects);
onlyReadsHandle(getDynamicSizesMutable(), effects);
producesHandle(getOperation()->getOpResults(), effects);
producesHandle(getLoops(), effects);
modifiesPayload(effects);
}
Expand Down Expand Up @@ -2113,8 +2113,8 @@ transform::LinalgPromoteOp::apply(transform::TransformRewriter &rewriter,

void transform::LinalgPromoteOp::getEffects(
SmallVectorImpl<MemoryEffects::EffectInstance> &effects) {
onlyReadsHandle(getTarget(), effects);
producesHandle(getResult(), effects);
onlyReadsHandle(getTargetMutable(), effects);
producesHandle(getOperation()->getOpResults(), effects);
modifiesPayload(effects);
}

Expand All @@ -2132,9 +2132,9 @@ void transform::FuseIntoContainingMemrefOp::build(OpBuilder &builder,

void transform::FuseIntoContainingMemrefOp::getEffects(
SmallVectorImpl<MemoryEffects::EffectInstance> &effects) {
consumesHandle(getProducerOp(), effects);
onlyReadsHandle(getContainingOp(), effects);
producesHandle(getFusedOp(), effects);
consumesHandle(getProducerOpMutable(), effects);
onlyReadsHandle(getContainingOpMutable(), effects);
producesHandle(getOperation()->getOpResults(), effects);
modifiesPayload(effects);
}

Expand Down
1 change: 0 additions & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ add_mlir_python_modules(AirMLIRPythonModules
AirPythonExtensions
COMMON_CAPI_LINK_LIBS
AirAggregateCAPI
AIRCAPI
)

add_mlir_python_modules(AirPythonModules
Expand Down
2 changes: 1 addition & 1 deletion utils/clone-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
##===----------------------------------------------------------------------===##

export commithash=a50bcc03cbaecf6473c6bf41f4497758a7876f3d
export commithash=ae570d82e8c021f45209830db8c9c7bb79bed394
target_dir=llvm

# clone llvm if it is not there already
Expand Down
2 changes: 1 addition & 1 deletion utils/clone-mlir-aie.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
##===----------------------------------------------------------------------===##

export HASH=cd33847b76a7c3b9f08ea303421778af8291787a
export HASH=76460fed78cc74cd59ac56e665e0ee0b4524d0ef
target_dir=mlir-aie

if [[ ! -d $target_dir ]]; then
Expand Down

0 comments on commit ad09060

Please sign in to comment.