[llvm] [DirectX] Generate shader source info part in llc (PR #202761)

Ilia Kuklin via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 07:47:19 PDT 2026


================
@@ -0,0 +1,67 @@
+; RUN: opt %S/Inputs/SourceInfo.ll -dxil-embed -dxil-globals -S -o - | FileCheck %s
+; RUN: llc %S/Inputs/SourceInfo.ll --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC
+; REQUIRES: !zlib
----------------
kuilpd wrote:

Well, the code was automatically picking `zlib` if it's available. In the last commit I added an option for `opt` to manually pick the compression type, which is also available for `llc`. Changed this test accordingly, please take a look. I don't really see another way, but if it's an overkill to make a new option and a category just for this, then I'll revert it.

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


More information about the llvm-commits mailing list