[llvm] [SPIR-V] Complete SPV_INTEL_16bit_atomics extension support (PR #184312)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 03:53:52 PST 2026
================
@@ -1622,10 +1622,44 @@ void addInstrRequirements(const MachineInstr &MI,
assert(InstrPtr->getOperand(1).isReg() && "Unexpected operand in atomic");
Register TypeReg = InstrPtr->getOperand(1).getReg();
SPIRVTypeInst TypeDef = MRI.getVRegDef(TypeReg);
+ unsigned Op = MI.getOpcode();
----------------
jmmartinez wrote:
A bit outside of the scope, of this PR, but could you declare `unsigned Op = MI.getOpcode()` just before the switch?
Then we can replace all the other `MI.getOpcode()` uses by `Op`.
https://github.com/llvm/llvm-project/pull/184312
More information about the llvm-commits
mailing list