[llvm] [AMDGPU] Remove unused TableGen generated enum (PR #171170)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 10:11:26 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Mirko BrkuĊĦanin (mbrkusanin)

<details>
<summary>Changes</summary>

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.


---
Full diff: https://github.com/llvm/llvm-project/pull/171170.diff


1 Files Affected:

- (modified) llvm/lib/Target/AMDGPU/VOP3PInstructions.td (-6) 


``````````diff
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 {

``````````

</details>


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


More information about the llvm-commits mailing list