[llvm] ef762d7 - [SPIR-V] Correct predicated load/store opcode values (#220062)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 12:02:03 PDT 2026


Author: Akhil Goel
Date: 2026-09-17T12:01:57-07:00
New Revision: ef762d75e62ce06378fdfaa8a61ea2af150e6428

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

LOG: [SPIR-V] Correct predicated load/store opcode values (#220062)

This PR fixes the `SPV_INTEL_predicated_io` extension instruction
opcodes to match the SPIR-V header definitions.

Added: 
    

Modified: 
    llvm/lib/Target/SPIRV/SPIRVInstrInfo.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SPIRV/SPIRVInstrInfo.td b/llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
index ad6bd994c5565..cd4faf80c2d97 100644
--- a/llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
+++ b/llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
@@ -1127,9 +1127,9 @@ def OpSubgroup2DBlockStoreINTEL: Op<6235, (outs), (ins ID:$element_size, ID:$blo
                   "OpSubgroup2DBlockStoreINTEL $element_size $block_width $block_height $block_count $src_ptr $dst_base_ptr $memory_width $memory_height $memory_pitch $coord">;
 
 // SPV_INTEL_predicated_io
-def OpPredicatedLoadINTEL: Op<6528, (outs ID:$res), (ins TYPE:$resType, ID:$ptr, ID:$predicate, ID:$default_value, variable_ops),
+def OpPredicatedLoadINTEL: Op<6258, (outs ID:$res), (ins TYPE:$resType, ID:$ptr, ID:$predicate, ID:$default_value, variable_ops),
                   "$res = OpPredicatedLoadINTEL $resType $ptr $predicate $default_value">;
-def OpPredicatedStoreINTEL: Op<6529, (outs), (ins ID:$ptr, ID:$object, ID:$predicate, variable_ops),
+def OpPredicatedStoreINTEL: Op<6259, (outs), (ins ID:$ptr, ID:$object, ID:$predicate, variable_ops),
                   "OpPredicatedStoreINTEL $ptr $object $predicate">;
 
 //SPV_ALTERA_blocking_pipes


        


More information about the llvm-commits mailing list