From 4dbc2876cff21a3a7a734a86fcd06d26b67ff3cb Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Tue, 5 Jul 2022 17:17:01 +0100 Subject: [PATCH] [AMDGPU] GFX11 trivial NFC tweaks A few miscellaneous comment, whitespace and indentation tweaks. --- llvm/include/llvm/IR/IntrinsicsAMDGPU.td | 2 +- llvm/lib/Target/AMDGPU/VOP2Instructions.td | 6 +++--- llvm/lib/Target/AMDGPU/VOPCInstructions.td | 2 -- llvm/lib/Target/AMDGPU/VOPInstructions.td | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td index c2dcfc2..e81224d 100644 --- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td +++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td @@ -1338,7 +1338,7 @@ def int_amdgcn_exp : Intrinsic <[], [ LLVMMatchType<0>, // src2 LLVMMatchType<0>, // src3 llvm_i1_ty, // done - llvm_i1_ty // vm + llvm_i1_ty // vm (ignored on GFX11+) ], [ImmArg>, ImmArg>, ImmArg>, ImmArg>, IntrWriteMem, IntrInaccessibleMemOnly, diff --git a/llvm/lib/Target/AMDGPU/VOP2Instructions.td b/llvm/lib/Target/AMDGPU/VOP2Instructions.td index 1485a1e..b24857ed 100644 --- a/llvm/lib/Target/AMDGPU/VOP2Instructions.td +++ b/llvm/lib/Target/AMDGPU/VOP2Instructions.td @@ -495,9 +495,9 @@ def VOP2b_I32_I1_I32_I32_I1 : VOPProfile<[i32, i32, i32, i1], 0, /*EnableClamp=* bank_mask:$bank_mask, bound_ctrl:$bound_ctrl); let InsDPP16 = !con(InsDPP, (ins FI:$fi)); let InsDPP8 = (ins DstRCDPP:$old, - Src0DPP:$src0, - Src1DPP:$src1, - dpp8:$dpp8, FI:$fi); + Src0DPP:$src0, + Src1DPP:$src1, + dpp8:$dpp8, FI:$fi); let HasExt = 1; let HasExtDPP = 1; diff --git a/llvm/lib/Target/AMDGPU/VOPCInstructions.td b/llvm/lib/Target/AMDGPU/VOPCInstructions.td index eb6c54a..33d3441 100644 --- a/llvm/lib/Target/AMDGPU/VOPCInstructions.td +++ b/llvm/lib/Target/AMDGPU/VOPCInstructions.td @@ -1108,7 +1108,6 @@ class VOPC64_DPP_Base op, string OpName, VOPProfile P> // Inst{87-84} ignored by hw let Inst{91-88} = bank_mask; let Inst{95-92} = row_mask; - } class VOPC64_DPP16 op, VOP_DPP_Pseudo ps, string opName = ps.OpName> @@ -1148,7 +1147,6 @@ class VOPC64_DPP8_Base op, string OpName, VOPProfile P> let Inst{40-32} = fi; let Inst{71-64} = !if(P.HasSrc0, src0{7-0}, 0); let Inst{95-72} = dpp8{23-0}; - } class VOPC64_DPP8 op, VOP_Pseudo ps, string opName = ps.OpName> diff --git a/llvm/lib/Target/AMDGPU/VOPInstructions.td b/llvm/lib/Target/AMDGPU/VOPInstructions.td index 2376347b..187485f 100644 --- a/llvm/lib/Target/AMDGPU/VOPInstructions.td +++ b/llvm/lib/Target/AMDGPU/VOPInstructions.td @@ -1416,7 +1416,7 @@ multiclass VOP3_Realtriple_with_name_gfx11 op, string opName, VOP3_Real_dpp8_with_name_gfx11; multiclass VOP3Only_Realtriple_with_name_gfx11 op, string opName, - string asmName> : + string asmName> : VOP3_Realtriple_with_name_gfx11; multiclass VOP3be_Realtriple_gfx11< -- 2.7.4