Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@d592c8ec8f71
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[d592c8ec8f71](llvm/llvm-project@d592c8ec8f71)

PiperOrigin-RevId: 607311624
  • Loading branch information
tensorflower-gardener authored and TensorFlow MLIR Team committed Feb 15, 2024
1 parent eab3768 commit 2556b0b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ http_archive(
],
)

LLVM_COMMIT = "5932f3f861f84305bd01050d0af8e0dcb232a8b3"
LLVM_COMMIT = "d592c8ec8f7138dcbde6f0890d048e59cba95041"

LLVM_SHA256 = "ffbb065b6b9c2aef72949e84484ce5db3a86f682e7f4910a79eb5236856d259a"
LLVM_SHA256 = "23a59fb74f8a2747ca1361b84624da4403b56bd908037c03585194a7a44225f4"

http_archive(
name = "llvm-raw",
Expand Down
2 changes: 1 addition & 1 deletion build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
5932f3f861f84305bd01050d0af8e0dcb232a8b3
d592c8ec8f7138dcbde6f0890d048e59cba95041

Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,14 @@ class ReduceWindowOpConverter
loc, inputType.getElementType(), mappedIvs.inBounds,
/*withElseRegion=*/true);

OpBuilder thenBuilder = elemOrInit.getThenBodyBuilder(rewriter);
OpBuilder thenBuilder =
elemOrInit.getThenBodyBuilder(rewriter->getListener());
Value elem =
thenBuilder.create<mlir::memref::LoadOp>(loc, input, mappedIvs.ivs);
thenBuilder.create<scf::YieldOp>(loc, elem);

OpBuilder elseBuilder = elemOrInit.getElseBodyBuilder(rewriter);
OpBuilder elseBuilder =
elemOrInit.getElseBodyBuilder(rewriter->getListener());
elseBuilder.create<scf::YieldOp>(loc, *windowLoop.getInitVals().begin());

return rewriter->create<scf::ReduceOp>(loc,
Expand Down
2 changes: 1 addition & 1 deletion stablehlo/build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5932f3f861f84305bd01050d0af8e0dcb232a8b3
d592c8ec8f7138dcbde6f0890d048e59cba95041

0 comments on commit 2556b0b

Please sign in to comment.