Skip to content

Commit

Permalink
llvm: update tag to 02b3a35 (#1124)
Browse files Browse the repository at this point in the history
As part of this update, this patch also updates MHLO tag to ad54b43.
  • Loading branch information
ashay authored Jul 31, 2022
1 parent 2c3b360 commit 55bbbec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//

#include "mlir/Dialect/Arithmetic/IR/Arithmetic.h"
#include "mlir/Dialect/Arithmetic/Utils/Utils.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/Dialect/Math/IR/Math.h"
Expand Down Expand Up @@ -40,9 +41,14 @@ static LogicalResult lowerToLoopsImpl(OpBuilder &builder,
return scalarLoopOp.generateScalarImplementation(builder, loc, ivs);
}
LogicalResult status = success();
Value offset = getValueOrCreateConstantIndexOp(builder, loc,
loopRanges[loopDepth].offset);
Value size =
getValueOrCreateConstantIndexOp(builder, loc, loopRanges[loopDepth].size);
Value stride = getValueOrCreateConstantIndexOp(builder, loc,
loopRanges[loopDepth].stride);
builder.create<scf::ForOp>(
loc, loopRanges[loopDepth].offset, loopRanges[loopDepth].size,
loopRanges[loopDepth].stride, ValueRange{},
loc, offset, size, stride, ValueRange{},
[&](OpBuilder &b, Location loc, Value iv, ValueRange args) {
ivs.push_back(iv);
status =
Expand Down
2 changes: 1 addition & 1 deletion externals/llvm-project
Submodule llvm-project updated 5786 files
2 changes: 1 addition & 1 deletion externals/mlir-hlo
Submodule mlir-hlo updated 57 files
+120 −62 BUILD
+3 −2 CMakeLists.txt
+1 −1 CONTRIBUTING.md
+1 −1 README.md
+2 −2 WORKSPACE
+1 −1 build_tools/llvm_version.txt
+18 −0 include/mlir-hlo-c/Attributes.h
+57 −47 include/mlir-hlo/Dialect/gml_st/IR/gml_st_extension_ops.td
+3 −2 include/mlir-hlo/Dialect/gml_st/IR/gml_st_set_ops.td
+2 −0 include/mlir-hlo/Dialect/lhlo_gpu/IR/lhlo_gpu_ops.td
+12 −0 include/mlir-hlo/Dialect/lhlo_gpu/IR/lhlo_gpu_ops_enums.td
+54 −35 include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td
+185 −0 include/mlir-hlo/Dialect/mhlo/transforms/legalize_to_linalg_utils.h
+19 −19 include/mlir-hlo/Dialect/mhlo/transforms/map_mhlo_to_scalar_op.h
+5 −0 include/mlir-hlo/Dialect/mhlo/transforms/mhlo_passes.td
+4 −0 include/mlir-hlo/Dialect/mhlo/transforms/passes.h
+5 −0 include/mlir-hlo/Dialect/mhlo/transforms/rewriters.h
+22 −0 lib/CAPI/Attributes.cc
+273 −97 lib/Dialect/gml_st/IR/gml_st_ops.cc
+10 −8 lib/Dialect/gml_st/transforms/fusion.cc
+1 −1 lib/Dialect/gml_st/transforms/fusion_interface_impl.cc
+16 −8 lib/Dialect/gml_st/transforms/legalize_mhlo_to_gml.cc
+6 −6 lib/Dialect/lhlo/IR/lhlo_ops.cc
+1 −1 lib/Dialect/lhlo/transforms/lhlo_legalize_to_parallel_loops.cc
+6 −0 lib/Dialect/mhlo/IR/CMakeLists.txt
+585 −81 lib/Dialect/mhlo/IR/hlo_ops.cc
+10 −7 lib/Dialect/mhlo/IR/mhlo_canonicalize.td
+47 −21 lib/Dialect/mhlo/transforms/CMakeLists.txt
+1 −1 lib/Dialect/mhlo/transforms/chlo_legalize_to_hlo.cc
+1 −1 lib/Dialect/mhlo/transforms/chlo_legalize_to_hlo_patterns.td
+8 −8 lib/Dialect/mhlo/transforms/hlo_legalize_shape_ops_to_standard.cc
+6 −200 lib/Dialect/mhlo/transforms/legalize_to_linalg.cc
+126 −0 lib/Dialect/mhlo/transforms/legalize_to_linalg_utils.cc
+144 −0 lib/Dialect/mhlo/transforms/sparse_chlo_legalize_to_linalg.cc
+19 −19 lib/Transforms/bufferize.cc
+1 −1 lib/Transforms/gml_st_pipeline.cc
+35 −7 lib/Transforms/gpu_fusion_rewrite.cc
+3 −2 lib/Transforms/propagate_static_shapes_to_kernel.cc
+2 −2 python/CMakeLists.txt
+17 −0 python/MlirHloModule.cc
+95 −0 tests/Dialect/chlo/chlo_legalize_to_mhlo.mlir
+40 −0 tests/Dialect/chlo/sparse_chlo_legalize_to_linalg.mlir
+23 −6 tests/Dialect/gml_st/compose_set_ops.mlir
+3 −5 tests/Dialect/gml_st/fusion.mlir
+0 −20 tests/Dialect/gml_st/invalid.mlir
+48 −9 tests/Dialect/gml_st/legalize_mhlo_to_gml.mlir
+20 −5 tests/Dialect/gml_st/ops.mlir
+96 −10 tests/Dialect/mhlo/canonicalize/canonicalize.mlir
+73 −0 tests/Dialect/mhlo/canonicalize/convolution.mlir
+17 −0 tests/Dialect/mhlo/hlo-legalize-to-linalg.mlir
+41 −0 tests/Dialect/mhlo/mhlo_infer_shape_type_methods.mlir
+598 −22 tests/Dialect/mhlo/ops.mlir
+213 −76 tests/gml_st_pipeline.mlir
+19 −0 tests/gpu_fusion_rewrite.mlir
+9 −0 tests/python/attributes.py
+3 −3 tosa/BUILD
+1 −1 tosa/tests/BUILD

0 comments on commit 55bbbec

Please sign in to comment.