Files
Ilia Kuklin 724ad1150d [DirectX] Add --dx-embed-debug and --dx-pdb-path flags (#204166)
Add flags for DirectX in `llc`:
* `--dx-embed-debug` to embed debug info into ILDB part of DXContainer
* `--dx-pdb-path` to specify filename/path for PDB file output

This patch does not add flags for clang Driver, they will be implemented
later.
2026-07-09 16:29:13 +05:00

23 lines
935 B
Plaintext

# Check that debug name and hashed are passed to DXContainerPDBPass, but
# not emitted into output file (checked with --implicit-check-not arguments).
RUN: opt %S/Inputs/SourceInfo.ll -dxil-embed -dxil-globals --dx-pdb-path=%t.pdb -S -o - \
RUN: | FileCheck %s --check-prefix=BC
BC: @dx.pdb.name
BC: @dx.pdb.hash
# Check that ILDN debug name is calculated from DXIL by default.
RUN: llc %S/Inputs/SourceInfo.ll --filetype=obj -o %t.dxbc
RUN: llvm-objcopy --dump-section=DXIL=%t0.bc %t.dxbc
RUN: %md5sum %t0.bc >%t0.bc.md5
RUN: obj2yaml %t.dxbc >%t.yaml
RUN: cat %t.yaml %t0.bc.md5 | FileCheck %s --implicit-check-not PDBN --implicit-check-not PDBH
CHECK: - Name: ILDN
CHECK-NEXT: Size: 44
CHECK-NEXT: DebugName:
CHECK-NEXT: Flags: 0
CHECK-NEXT: NameLength: 36
CHECK-NEXT: DebugName: [[MD5:[0-9a-f]+]].pdb
CHECK: ...
CHECK-NEXT: [[MD5]]