diff --git a/build_tools/llvm_version.txt b/build_tools/llvm_version.txt index c3e2eb21..207a057d 100644 --- a/build_tools/llvm_version.txt +++ b/build_tools/llvm_version.txt @@ -1 +1 @@ -20ed5b1f45871612570d3bd447121ac43e083c6a +676d3bafc09d0c331a04b813804407334de12917 diff --git a/lib/Conversion/StablehloToEmitC/StablehloToEmitC.cpp b/lib/Conversion/StablehloToEmitC/StablehloToEmitC.cpp index 2ea66bb3..73148047 100644 --- a/lib/Conversion/StablehloToEmitC/StablehloToEmitC.cpp +++ b/lib/Conversion/StablehloToEmitC/StablehloToEmitC.cpp @@ -299,11 +299,9 @@ class SliceOpConversion : public OpConversionPattern { SmallVector arguments = indexSequence(adaptor.getOperands().size(), sliceOp.getContext()); - arguments.push_back( - rewriter.getI64TensorAttr(sliceOp.getStartIndicesAttr())); - arguments.push_back( - rewriter.getI64TensorAttr(sliceOp.getLimitIndicesAttr())); - arguments.push_back(rewriter.getI64TensorAttr(sliceOp.getStridesAttr())); + arguments.push_back(rewriter.getI64TensorAttr(sliceOp.getStartIndices())); + arguments.push_back(rewriter.getI64TensorAttr(sliceOp.getLimitIndices())); + arguments.push_back(rewriter.getI64TensorAttr(sliceOp.getStrides())); ArrayAttr args = rewriter.getArrayAttr(arguments); @@ -338,7 +336,7 @@ class DynamicSliceOpConversion adaptor.getOperands().size(), dynamicSliceOp.getContext()); arguments.push_back( - rewriter.getI64TensorAttr(dynamicSliceOp.getSliceSizesAttr())); + rewriter.getI64TensorAttr(dynamicSliceOp.getSliceSizes())); ArrayAttr args = rewriter.getArrayAttr(arguments); @@ -402,12 +400,9 @@ class PadOpConversion : public OpConversionPattern { SmallVector arguments = indexSequence(adaptor.getOperands().size(), padOp.getContext()); - arguments.push_back( - rewriter.getI64TensorAttr(padOp.getEdgePaddingLowAttr())); - arguments.push_back( - rewriter.getI64TensorAttr(padOp.getEdgePaddingHighAttr())); - arguments.push_back( - rewriter.getI64TensorAttr(padOp.getInteriorPaddingAttr())); + arguments.push_back(rewriter.getI64TensorAttr(padOp.getEdgePaddingLow())); + arguments.push_back(rewriter.getI64TensorAttr(padOp.getEdgePaddingHigh())); + arguments.push_back(rewriter.getI64TensorAttr(padOp.getInteriorPadding())); ArrayAttr args = rewriter.getArrayAttr(arguments); @@ -441,7 +436,7 @@ class TransposeOpConversion indexSequence(adaptor.getOperands().size(), transposeOp.getContext()); arguments.push_back( - rewriter.getI64TensorAttr(transposeOp.getPermutationAttr())); + rewriter.getI64TensorAttr(transposeOp.getPermutation())); ArrayAttr args = rewriter.getArrayAttr(arguments); Type resultType = transposeOp.getResult().getType(); diff --git a/third_party/stablehlo b/third_party/stablehlo index e81411ef..52172972 160000 --- a/third_party/stablehlo +++ b/third_party/stablehlo @@ -1 +1 @@ -Subproject commit e81411ef562e11337283ef24bb3c40b2f3a6ebfa +Subproject commit 5217297204acb9e5a21e40fa825aa0769fb3c33f