[Mlir-commits] [mlir] [MLIR][WasmSSA] Instruction parser refactoring of WasmSSA importer (PR #195500)

Max Graey llvmlistbot at llvm.org
Sat May 2 23:10:59 PDT 2026


================
@@ -237,6 +237,15 @@ class ValueStack {
 
 using local_val_t = TypedValue<wasmssa::LocalRefType>;
 
+template <typename TargetType, size_t... IS>
+constexpr std::integer_sequence<TargetType, TargetType{IS}...>
+    castIndexSequence(std::index_sequence<IS...>) {
+  return {};
+}
+
+constexpr auto all8bitsBytes =
+    castIndexSequence<std::byte>(std::make_index_sequence<256>());
----------------
MaxGraey wrote:

MSVC not support `std::bite` for std::index_sequence. As always, MSVS implementing the bare minimum of spec. You could try using `uint8_t`, and then cast it to `std::byte` if necessary

https://github.com/llvm/llvm-project/pull/195500


More information about the Mlir-commits mailing list