Lines Matching refs:decoration
272 const auto function = [&](const std::unique_ptr<Instruction>& decoration) {
273 if (decoration.get()->getOpCode() == OpMemberDecorate &&
274 decoration.get()->getIdOperand(0) == typeId &&
275 decoration.get()->getImmediateOperand(1) == c &&
276 (decoration.get()->getImmediateOperand(2) == DecorationOffset ||
277 decoration.get()->getImmediateOperand(2) == DecorationMatrixStride)) {
278 alignment |= decoration.get()->getImmediateOperand(3);
287 const auto function = [&](const std::unique_ptr<Instruction>& decoration) {
288 if (decoration.get()->getOpCode() == OpDecorate &&
289 decoration.get()->getIdOperand(0) == typeId &&
290 decoration.get()->getImmediateOperand(1) == DecorationArrayStride) {
291 alignment |= decoration.get()->getImmediateOperand(2);
428 // there is an existing restrict/aliased decoration. If we don't find one, add Aliased as the
435 const auto function = [&](const std::unique_ptr<Instruction>& decoration) {
436 if (decoration.get()->getIdOperand(0) == resultId &&
437 decoration.get()->getOpCode() == OpDecorate &&
438 (decoration.get()->getImmediateOperand(1) == spv::DecorationAliasedPointerEXT ||
439 decoration.get()->getImmediateOperand(1) == spv::DecorationRestrictPointerEXT)) {
459 // Add Aliased decoration if there's more than one Workgroup Block variable.