[llvm] 1cbed4f - [NFC][AMDGPU] Remove unused TableGen generated enum (#171170)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 05:01:06 PST 2025


Author: Mirko BrkuĊĦanin
Date: 2025-12-09T14:01:00+01:00
New Revision: 1cbed4fb94a0419934694824927d8e2cfa071928

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

LOG: [NFC][AMDGPU] Remove unused TableGen generated enum (#171170)

This GenericEnum was just adding separate values for VOP3P_Pseudo
opcodes in the same namespace as existing opcodes that did not match.
They were defined in AMDGPUGenSearchableTables.inc by tablegen emitter
but were guarded out by #ifdef. Because of that, they were never
included in the code, so the compiler never reported the naming
conflict and the bug never had a chance to surface.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
index 786e75f081e44..2dfa905848a34 100644
--- a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+++ b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
@@ -1364,16 +1364,10 @@ class WMMAOpcodeMapping<Instruction TwoAddr, Instruction ThreeAddr> {
   field bit is_wmma_xdl;
 }
 
-def WMMAOpcode : GenericEnum {
-  let FilterClass = "VOP3P_Pseudo";
-}
-
 class WMMAMappingTable : GenericTable {
   let FilterClass = "WMMAOpcodeMapping";
   let CppTypeName = "WMMAOpcodeMappingInfo";
   let Fields = ["Opcode2Addr", "Opcode3Addr"];
-  string TypeOf_Opcode2Addr = "WMMAOpcode";
-  string TypeOf_Opcode3Addr = "WMMAOpcode";
 }
 
 def WMMAOpcode2AddrMappingTable : WMMAMappingTable {


        


More information about the llvm-commits mailing list