[PATCH] D125404: [SPIR-V] Add simple transcoding tests

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 10:19:41 PDT 2022


MaskRay added a comment.

In D125404#3508754 <https://reviews.llvm.org/D125404#3508754>, @andreytr wrote:

> Fixed changes proposed by @MaskRay and @zuban32. I'm not sure about `%[[PTR_ID:[0-9]+]]` etc...
> And what about build failures? It seems, these are not related to my patch...

You can use the capture pattern `%[[#PTR_ID:]]`, then reference the capture with `%[[#PTR_ID]]`.



================
Comment at: llvm/test/CodeGen/SPIRV/optnone.ll:4
+
+; Per SPIR-V spec:
+; FunctionControlDontInlineMask = 0x2 (2)
----------------



================
Comment at: llvm/test/CodeGen/SPIRV/optnone.ll:5
+; Per SPIR-V spec:
+; FunctionControlDontInlineMask = 0x2 (2)
+; CHECK-SPIRV-NO-EXT: %[[#]] = OpFunction %[[#]] DontInline
----------------



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125404/new/

https://reviews.llvm.org/D125404



More information about the llvm-commits mailing list