[llvm] [SPIR-V] Add SPIR-V structurizer (PR #97606)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 02:18:13 PDT 2024
================
@@ -0,0 +1,649 @@
+//===-- SPIRVStructurizer.cpp -----------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This pass adds the required OpSelection/OpLoop merge instructions to
+// generate valid SPIR-V.
+// This pass trims convergence intrinsics as those were only useful when
+// modifying the CFG during IR passes.
+//
+//===----------------------------------------------------------------------===//
+
+#include <stack>
----------------
Keenuts wrote:
Arf the opposite than us, fixed thanks!
https://github.com/llvm/llvm-project/pull/97606
More information about the llvm-commits
mailing list