Lines Matching defs:opcode
100 /// Handles a SPIR-V instruction with the given `opcode` and `operand`.
102 using HandleFn = llvm::function_ref<bool(spirv::Opcode opcode,
116 spirv::Opcode opcode =
120 if (handleFn(opcode, operands))
144 auto hasBlockDecoration = [](spirv::Opcode opcode,
146 return opcode == spirv::Opcode::OpDecorate && operands.size() == 2 &&
162 auto countBlockDecoration = [&count](spirv::Opcode opcode,
164 if (opcode == spirv::Opcode::OpDecorate && operands.size() == 2 &&
188 auto hasSignlessVal = [&](spirv::Opcode opcode, ArrayRef<uint32_t> operands) {
189 return opcode == spirv::Opcode::OpConstant && operands.size() == 3 &&
194 auto hasSignedVal = [&](spirv::Opcode opcode, ArrayRef<uint32_t> operands) {
195 return opcode == spirv::Opcode::OpConstant && operands.size() == 3 &&
209 auto hasVarName = [](spirv::Opcode opcode, ArrayRef<uint32_t> operands) {
211 return opcode == spirv::Opcode::OpName &&
225 auto hasVarName = [](spirv::Opcode opcode, ArrayRef<uint32_t> operands) {
227 return opcode == spirv::Opcode::OpName &&