Skip to content

Commit b4ea83d

Browse files
committed
Integrate LLVM at 977355be38d10c62c3d5498a64618ec926348252
Bump stablehlo to openxla/stablehlo@e60f552 After LLVM c6964b1b4dcd, i1 DenseElementsAttr no longer uses bit-packed special handling. Also, relax compile.py IR-printing check to match any IR Dump After ... banner, since after the LLVM update the first reported pass changed. Signed-off-by: Annop Wongwathanarat <annop.wongwathanarat@arm.com>
1 parent 17ae730 commit b4ea83d

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

externals/llvm-project

Submodule llvm-project updated 13779 files

externals/stablehlo

Submodule stablehlo updated 69 files

projects/pt1/test/python/compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ def test_enable_ir_printing():
3434
)
3535

3636

37-
# CHECK: // -----// IR Dump After Inliner (inline)
37+
# CHECK: // -----// IR Dump After {{.*}} //----- //
3838
# CHECK-NEXT: module attributes {torch.debug_module_name = "TinyModel"} {

python/torch_mlir/extras/onnx_importer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,11 +1135,7 @@ def get_operator_function(
11351135
np.asarray(tp.float_data, dtype=np.float32).reshape(tp.dims), signless=False
11361136
),
11371137
onnx.TensorProto.DataType.BOOL: lambda tp: DenseElementsAttr.get(
1138-
np.packbits(
1139-
np.asarray(tp.int32_data, dtype=np.bool_).reshape(tp.dims),
1140-
axis=None,
1141-
bitorder="little",
1142-
),
1138+
np.asarray(tp.int32_data, dtype=np.bool_).reshape(tp.dims),
11431139
shape=tp.dims,
11441140
type=IntegerType.get_signless(1),
11451141
),

0 commit comments

Comments
 (0)