[llvm] [DirectX][NFC] Leverage LLVM and DirectX intrinsic description in DXIL Op records (PR #83193)

S. Bharadwaj Yadavalli via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 09:34:15 PST 2024


================
@@ -18,7 +18,7 @@ entry:
 ; Function Attrs: noinline nounwind optnone
 define i32 @test_group_id(i32 %a) #0 {
 entry:
-; CHECK: call i32 @dx.op.groupId.i32(i32 94, i32 %{{.*}})
+; CHECK: call i32 @dx.op.unary.i32(i32 94, i32 %{{.*}})
----------------
bharadwajy wrote:

> The validator should catch it. The normal way to consume is thru DXILOperation https://github.com/microsoft/DirectXShaderCompiler/blob/main/include/dxc/DXIL/DxilOperations.h#L36 which will do the check.

Thanks for your help. I verified that the validator does catch it, as you said.

Will make changes to address this.

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


More information about the llvm-commits mailing list