Integrate llvm 20231005 4 (#15119)
Carrying three reverts:
* Revert "[mlir][vector] Prevent incorrect vector.transfer_{read|write}
hoisting (#66930)" (Revert "[mlir][vector] Prevent incorrect
vector.transfer_{read|write} hoisting (#66930)") : Requires SPIR-V
adaptations that we have not been able to do yet.
* [RISCV][CostModel] VPIntrinsics have same cost as their non-vp
counterparts (#67178) (fc865c20345860f394448c228054beafc22a1d4d.) :
Reverted upstream ahead of this integrate. See #15127
* [mlir][tosa] Align `shift` attribute of `TOSA_MulOp` with the spec
(#67816) (363c617aac9d5e8058be549a3c59e3b085c09a54) : Temporarily
reverted in this integrate to give downstreams time to adapt to ASM
format change.
ci-extra: build_test_all_windows
diff --git a/compiler/src/iree/compiler/ConstEval/Runtime.cpp b/compiler/src/iree/compiler/ConstEval/Runtime.cpp
index 8ede28b..a390fa2 100644
--- a/compiler/src/iree/compiler/ConstEval/Runtime.cpp
+++ b/compiler/src/iree/compiler/ConstEval/Runtime.cpp
@@ -191,7 +191,7 @@
// Copy.
LogicalResult copyResult = serializableAttr.serializeToBuffer(
- loc, llvm::support::endian::system_endianness(),
+ loc, llvm::endianness::native,
ArrayRef<char>(reinterpret_cast<char *>(mapping.contents.data),
storageSize));
diff --git a/compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.cpp b/compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.cpp
index 0e26efc..3d499dc 100644
--- a/compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.cpp
+++ b/compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.cpp
@@ -89,7 +89,7 @@
} else if (bitWidth % 8 != 0) {
// Any non-byte aligned bit width is stored byte aligned.
return false;
- } else if (endian != llvm::support::endian::system_endianness()) {
+ } else if (endian != llvm::endianness::native) {
// Can't use raw data if the endianness of the system doesn't match the
// endianness of the target.
return false;
diff --git a/third_party/llvm-project b/third_party/llvm-project
index 435707e..03a151d 160000
--- a/third_party/llvm-project
+++ b/third_party/llvm-project
@@ -1 +1 @@
-Subproject commit 435707e15f887304dc0ff6779462262323faeb76
+Subproject commit 03a151d5e66d1e4f2e2b6326ae070556eda3594d