Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigunj authored Dec 3, 2024
1 parent db2ce93 commit d1db6df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ workspace(name = "stablehlo")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

LLVM_COMMIT = "33fcd6acc75535c8b5e27b00eb99d35abf52954d"
LLVM_COMMIT = "bd92e46204331b9af296f53abb708317e72ab7a8"

LLVM_SHA256 = "cc66c55704db64d7281983b07162eb9ab0138630d19ac37bc438e120c164bea7"
LLVM_SHA256 = "60f71fc5b237e10729edbed8cbe23b7081dabe254fbcb1ea82db8789cb7eaecf"

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 +1 @@
33fcd6acc75535c8b5e27b00eb99d35abf52954d
bd92e46204331b9af296f53abb708317e72ab7a8
9 changes: 0 additions & 9 deletions docs/interpreter_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,6 @@ hlo-expand --triangular_solve_expander <path/to/hlo_module>
### Convert Not In HLO Ops

```sh
# broadcast
mlir-hlo-opt -mhlo-legalize-broadcast-to-broadcast-in-dim <path/to/input>

# create_token
mlir-hlo-opt -mhlo-legalize-create-token-to-after-all <path/to/input>

# cross-replica-sum
mlir-hlo-opt -mhlo-legalize-cross-replica-sum-to-all-reduce <path/to/input>

# dot
mlir-hlo-opt -mhlo-legalize-dot-to-dot-general <path/to/input>

Expand Down
4 changes: 2 additions & 2 deletions stablehlo/tests/transforms/stablehlo_convert_to_signless.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ func.func @uint16_to_int16(%arg0: memref<*xui16>) -> memref<ui16> {
%1 = builtin.unrealized_conversion_cast %arg0 : memref<*xui16> to memref<*xi16>
%2 = memref.cast %1 : memref<*xi16> to memref<i16>
%3 = builtin.unrealized_conversion_cast %2 : memref<i16> to memref<ui16>
%4 = bufferization.to_tensor %3 : memref<ui16>
%4 = bufferization.to_tensor %3 : memref<ui16> to tensor<ui16>
%5 = builtin.unrealized_conversion_cast %4 : tensor<ui16> to tensor<i16>
%6 = bufferization.to_memref %5 : memref<i16>
%6 = bufferization.to_memref %5 : tensor<i16> to memref<i16>
%7 = builtin.unrealized_conversion_cast %6 : memref<i16> to memref<ui16>
func.return %7 : memref<ui16>
}
Expand Down
5 changes: 3 additions & 2 deletions stablehlo/transforms/StablehloAggressiveFolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ APSInt getAPSInt(Type type, uint64_t value) {
} else {
llvm::report_fatal_error("expected integer type");
}
return APSInt({/*numBits=*/numBits, value},
/*isUnsigned=*/isUnsigned);
return APSInt(
{/*numBits=*/numBits, value, /*isSigned=*/false, /*implicitTrunc=*/true},
/*isUnsigned=*/isUnsigned);
}

LogicalResult validateResultTypeForEval(PatternRewriter& rewriter,
Expand Down

0 comments on commit d1db6df

Please sign in to comment.