[llvm] [SPIRV][HLSL] Implement CBuffer access lowering pass (PR #159136)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 05:28:43 PDT 2025
================
@@ -0,0 +1,172 @@
+//===- SPIRVCBufferAccess.cpp - Translate CBuffer Loads
+//--------------------===//
+//
+// 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 replaces all accesses to constant buffer global variables with
+// accesses to the proper SPIR-V resource. It's designed to run after the
+// DXIL preparation passes and before the main SPIR-V legalization passes.
----------------
Keenuts wrote:
before the DXIL preparation pass?
https://github.com/llvm/llvm-project/pull/159136
More information about the llvm-commits
mailing list