[llvm-branch-commits] [DirectX] Add resource handling to the DXIL pretty printer (PR #104448)
Helena Kotas via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 15 11:18:07 PDT 2024
================
@@ -1,4 +1,13 @@
; RUN: opt -S -passes=dxil-op-lower,dxil-translate-metadata %s | FileCheck %s
+; RUN: opt -S -passes=dxil-pretty-printer %s 2>&1 >/dev/null | FileCheck --check-prefix=CHECK-PRETTY %s
+
+; CHECK-PRETTY: Type Format Dim ID HLSL Bind Count
+; CHECK-PRETTY: ---------- ------- ----------- ------- -------------- ---------
+; CHECK-PRETTY: UAV f32 buf U0 u5,space3 1
+; CHECK-PRETTY: UAV i32 buf U1 u7,space2 1
+; CHECK-PRETTY: SRV u32 buf T0 t3,space5 24
+; CHECK-PRETTY: SRV struct r/o T1 t2,space4 1
+; CHECK-PRETTY: SRV byte r/o T2 t8,space1 1
----------------
hekota wrote:
Change one of the cases to use the default `space0`?
https://github.com/llvm/llvm-project/pull/104448
More information about the llvm-branch-commits
mailing list