[llvm] [DirectX][NFC] Simplified DXIL Operation mapping to LLVM or DirectX intrinsics in DXIL.td. (PR #83193)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 14:48:34 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 %{{.*}})
----------------
bogner wrote:

I'm not aware of a source of truth for what names are used other than the logic that generates the dxil op code in dxc: https://github.com/microsoft/DirectXShaderCompiler/blob/main/utils/hct/hctdb.py#L2613

Unfortunately there isn't much said about the actual function names in the DXIL specification, other than to mention that `dx.op.unary` exists: https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst#L2107

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


More information about the llvm-commits mailing list