[llvm] e5b0c21 - [AMDGPU] Add IsSingle to a few Interp instructions (#95984)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 06:59:38 PDT 2024


Author: Joe Nash
Date: 2024-06-19T09:59:35-04:00
New Revision: e5b0c210cc4cdaae7075ad2d4aa1efe4eb4cb0c5

URL: https://github.com/llvm/llvm-project/commit/e5b0c210cc4cdaae7075ad2d4aa1efe4eb4cb0c5
DIFF: https://github.com/llvm/llvm-project/commit/e5b0c210cc4cdaae7075ad2d4aa1efe4eb4cb0c5.diff

LOG: [AMDGPU] Add IsSingle to a few Interp instructions (#95984)

A _e64 suffix should not be printed since these instructions only have
one legal encoding length. The absence of the IsSingle flag is hidden by
how the string is printed. We could fix it for GFX10 as well, but we
shouldn't change the asm output to omit _e64 at this point.
NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/VOP3Instructions.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/VOP3Instructions.td b/llvm/lib/Target/AMDGPU/VOP3Instructions.td
index 0f9e79bc13953..ce12506c9e6f6 100644
--- a/llvm/lib/Target/AMDGPU/VOP3Instructions.td
+++ b/llvm/lib/Target/AMDGPU/VOP3Instructions.td
@@ -107,7 +107,7 @@ class getInterp16Ins <bit HasSrc2, bit HasOMod,
 }
 
 class VOP3_INTERP16 <list<ValueType> ArgVT> : VOPProfile<ArgVT> {
-
+  let IsSingle = 1;
   let HasOMod = !ne(DstVT.Value, f16.Value);
   let HasHigh = 1;
 


        


More information about the llvm-commits mailing list