Integrate LLVM at llvm/llvm-project@fe611b1da84b Updates LLVM usage to match [fe611b1da84b](https://github.com/llvm/llvm-project/commit/fe611b1da84b) PiperOrigin-RevId: 393315711
diff --git a/SUBMODULE_VERSIONS.txt b/SUBMODULE_VERSIONS.txt index 02f8d7f..6c22314 100644 --- a/SUBMODULE_VERSIONS.txt +++ b/SUBMODULE_VERSIONS.txt
@@ -4,7 +4,7 @@ aa533abfd4232b01f9e57041d70114d5a77e6de0 third_party/googletest 88b845dee001723c4a0db1fe5477de735b6d3bb0 third_party/liburing acd6f6f014c25e46363e718381e0b35205df2d83 third_party/libyaml -bd7ece4e063e7afd08cbaa311878c09aadf5ec21 third_party/llvm-project +fe611b1da84b9442c093739394d336af9e99c1a1 third_party/llvm-project 8e030dab5908457ad11d101886c8a57dae8c9d93 third_party/mlir-hlo 3f701faace7addc75d16dea8a6cd769fa5b3f260 third_party/musl 4c7697dbe973ed01ae6fbec37d186ebd05982e1f third_party/pybind11
diff --git a/iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp b/iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp index 6f1e29e..f659478 100644 --- a/iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp +++ b/iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp
@@ -175,8 +175,9 @@ // The following function generates SPIR-V ops with i32 types. So it does // type "conversion" (index -> i32) implicitly. - auto value = - spirv::getPushConstantValue(loadOp, elementCount, offset, rewriter); + auto i32Type = rewriter.getIntegerType(32); + auto value = spirv::getPushConstantValue(loadOp, elementCount, offset, + i32Type, rewriter); rewriter.replaceOp(loadOp, value); return success(); @@ -194,10 +195,11 @@ InterfaceOpTy op, ArrayRef<Value> operands, ConversionPatternRewriter &rewriter) const override { int32_t index = static_cast<int32_t>(op.dimension().getSExtValue()); - Value spirvBuiltin = spirv::getBuiltinVariableValue(op, builtin, rewriter); + auto i32Type = rewriter.getIntegerType(32); + Value spirvBuiltin = + spirv::getBuiltinVariableValue(op, builtin, i32Type, rewriter); rewriter.replaceOpWithNewOp<spirv::CompositeExtractOp>( - op, rewriter.getIntegerType(32), spirvBuiltin, - rewriter.getI32ArrayAttr({index})); + op, i32Type, spirvBuiltin, rewriter.getI32ArrayAttr({index})); return success(); } };
diff --git a/third_party/llvm-project b/third_party/llvm-project index bd7ece4..fe611b1 160000 --- a/third_party/llvm-project +++ b/third_party/llvm-project
@@ -1 +1 @@ -Subproject commit bd7ece4e063e7afd08cbaa311878c09aadf5ec21 +Subproject commit fe611b1da84b9442c093739394d336af9e99c1a1