[llvm] [SPIR-V] Add SPIR-V structurizer (PR #97606)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 07:28:58 PDT 2024


Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/97606 at github.com>


================
@@ -0,0 +1,643 @@
+//===-- 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.
----------------
s-perron wrote:

```suggestion
// This pass removes convergence intrinsics as those were only useful when
// modifying the CFG during IR passes.
```

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


More information about the llvm-commits mailing list