From 5435fc7011be1d855dd1989eb8ba97221c2284ab Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Thu, 30 Nov 2023 12:51:19 -0800 Subject: [PATCH] improve tests --- .../hlsl/workgraph/ast-nodeoutput.hlsl | 8 ++++---- .../passes/hl/sroa_hlsl/NodeInput_type.ll | 16 ---------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/tools/clang/test/HLSLFileCheck/hlsl/workgraph/ast-nodeoutput.hlsl b/tools/clang/test/HLSLFileCheck/hlsl/workgraph/ast-nodeoutput.hlsl index cfad44cd67..423db5292f 100644 --- a/tools/clang/test/HLSLFileCheck/hlsl/workgraph/ast-nodeoutput.hlsl +++ b/tools/clang/test/HLSLFileCheck/hlsl/workgraph/ast-nodeoutput.hlsl @@ -35,12 +35,12 @@ void node01(NodeOutput output) //CHECK-NEXT: CXXMethodDecl {{0x[0-9a-fA-F]+}} <> Get 'recordType &(unsigned int)' //CHECK-NEXT: ParmVarDecl {{0x[0-9a-fA-F]+}} <> Index 'unsigned int' cinit //CHECK-NEXT: IntegerLiteral {{0x[0-9a-fA-F]+}} <> 'unsigned int' 0 -//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" +//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" 0 //CHECK-NEXT: HLSLCXXOverloadAttr {{0x[0-9a-fA-F]+}} <> Implicit //CHECK-NEXT: CXXMethodDecl {{0x[0-9a-fA-F]+}} <> Get 'const recordType &(unsigned int) const' //CHECK-NEXT: ParmVarDecl {{0x[0-9a-fA-F]+}} <> Index 'unsigned int' cinit //CHECK-NEXT: IntegerLiteral {{0x[0-9a-fA-F]+}} <> 'unsigned int' 0 -//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" +//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" 0 //CHECK-NEXT: HLSLCXXOverloadAttr {{0x[0-9a-fA-F]+}} <> Implicit //CHECK-NEXT: FunctionTemplateDecl {{0x[0-9a-fA-F]+}} <> operator[] //CHECK-NEXT: TemplateTypeParmDecl {{0x[0-9a-fA-F]+}} <> class recordType @@ -107,12 +107,12 @@ void node02(NodeOutput output) //CHECK-NEXT: CXXMethodDecl {{0x[0-9a-fA-F]+}} <> Get 'recordType &(unsigned int)' //CHECK-NEXT: ParmVarDecl {{0x[0-9a-fA-F]+}} <> Index 'unsigned int' cinit //CHECK-NEXT: IntegerLiteral {{0x[0-9a-fA-F]+}} <> 'unsigned int' 0 -//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" +//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" 0 //CHECK-NEXT: HLSLCXXOverloadAttr {{0x[0-9a-fA-F]+}} <> Implicit //CHECK-NEXT: CXXMethodDecl {{0x[0-9a-fA-F]+}} <> Get 'const recordType &(unsigned int) const' //CHECK-NEXT: ParmVarDecl {{0x[0-9a-fA-F]+}} <> Index 'unsigned int' cinit //CHECK-NEXT: IntegerLiteral {{0x[0-9a-fA-F]+}} <> 'unsigned int' 0 -//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" +//CHECK-NEXT: HLSLIntrinsicAttr {{0x[0-9a-fA-F]+}} <> Implicit "subscript" "" 0 //CHECK-NEXT: HLSLCXXOverloadAttr {{0x[0-9a-fA-F]+}} <> Implicit //CHECK-NEXT: FunctionTemplateDecl {{0x[0-9a-fA-F]+}} <> operator[] //CHECK-NEXT: TemplateTypeParmDecl {{0x[0-9a-fA-F]+}} <> class recordType diff --git a/tools/clang/test/HLSLFileCheck/passes/hl/sroa_hlsl/NodeInput_type.ll b/tools/clang/test/HLSLFileCheck/passes/hl/sroa_hlsl/NodeInput_type.ll index 80be619fb5..bf3e294806 100644 --- a/tools/clang/test/HLSLFileCheck/passes/hl/sroa_hlsl/NodeInput_type.ll +++ b/tools/clang/test/HLSLFileCheck/passes/hl/sroa_hlsl/NodeInput_type.ll @@ -8,22 +8,6 @@ ; CHECK: alloca %"struct.DispatchNodeInputRecord" ; CHECK: load %"struct.DispatchNodeInputRecord", %"struct.DispatchNodeInputRecord"* -; Buffer Definitions: -; -; cbuffer $Globals -; { -; -; [0 x i8] (type annotation not present) -; -; } -; -; -; Resource Bindings: -; -; Name Type Format Dim ID HLSL Bind Count -; ------------------------------ ---------- ------- ----------- ------- -------------- ------ -; $Globals cbuffer NA NA CB0 cb4294967295 1 -; target datalayout = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f64:64-n8:16:32:64" target triple = "dxil-ms-dx"