• Home
  • Raw
  • Download

Lines Matching refs:inst

47 spv_result_t ValidateExtension(ValidationState_t& _, const Instruction* inst) {  in ValidateExtension()  argument
49 std::string extension = GetExtensionString(&(inst->c_inst())); in ValidateExtension()
52 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtension()
63 const Instruction* inst) { in ValidateExtInstImport() argument
67 inst->words().data() + inst->operands()[name_id].offset)); in ValidateExtInstImport()
69 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInstImport()
78 spv_result_t ValidateExtInst(ValidationState_t& _, const Instruction* inst) { in ValidateExtInst() argument
79 const uint32_t result_type = inst->type_id(); in ValidateExtInst()
80 const uint32_t num_operands = static_cast<uint32_t>(inst->operands().size()); in ValidateExtInst()
82 const uint32_t ext_inst_set = inst->word(3); in ValidateExtInst()
83 const uint32_t ext_inst_index = inst->word(4); in ValidateExtInst()
85 spv_ext_inst_type_t(inst->ext_inst_type()); in ValidateExtInst()
133 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
140 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateExtInst()
142 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
163 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
173 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateExtInst()
175 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
181 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
188 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
197 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
228 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
236 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
244 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateExtInst()
246 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
256 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
264 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
270 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
286 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
291 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
293 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
302 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
307 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
308 const uint32_t i_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
311 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
319 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
325 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
339 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
345 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
347 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
357 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
362 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
363 const uint32_t exp_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
366 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
375 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
386 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
396 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
407 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
412 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
413 const uint32_t exp_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
416 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
422 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
429 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
451 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
462 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
464 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
476 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
481 const uint32_t v_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
484 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
496 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
501 const uint32_t v_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
504 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
514 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
519 const uint32_t v_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
522 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
534 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
540 const uint32_t v_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
542 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
555 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
561 const uint32_t v_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
563 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
574 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
580 const uint32_t v_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
582 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
591 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
596 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
598 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
604 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
614 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
619 const uint32_t p0_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
621 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
627 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
633 const uint32_t p1_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
635 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
641 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
648 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
658 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
664 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
669 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
670 const uint32_t y_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
673 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
679 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
688 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
693 const uint32_t i_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
694 const uint32_t n_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
695 const uint32_t eta_type = _.GetOperandTypeId(inst, 6); in ValidateExtInst()
698 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
704 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
710 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
721 return _.diag(SPV_ERROR_INVALID_CAPABILITY, inst) in ValidateExtInst()
728 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
734 const uint32_t interpolant_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
739 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
745 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
751 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
757 const uint32_t sample_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
760 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
767 const uint32_t offset_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
771 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
777 _.function(inst->function()->id()) in ValidateExtInst()
786 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
791 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
898 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
905 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
913 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateExtInst()
915 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
929 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
936 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
943 const uint32_t x_type = _.GetOperandTypeId(inst, operand_index++); in ValidateExtInst()
945 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
951 const uint32_t y_type = _.GetOperandTypeId(inst, operand_index++); in ValidateExtInst()
953 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
959 const uint32_t p_type = _.GetOperandTypeId(inst, operand_index++); in ValidateExtInst()
963 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
972 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
979 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
990 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
997 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1003 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1005 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1010 const uint32_t p_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1014 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1023 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1031 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1038 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1049 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1057 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1063 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1065 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1071 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1083 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1090 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1096 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1098 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1103 const uint32_t exp_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1106 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1112 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1122 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1129 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1135 const uint32_t nancode_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1137 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1143 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1150 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1187 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1194 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1202 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateExtInst()
1204 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1216 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1225 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1234 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1240 const uint32_t hi_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1241 const uint32_t lo_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1244 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1250 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1257 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1271 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1279 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1287 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateExtInst()
1289 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1300 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1307 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1312 const uint32_t x_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1313 const uint32_t y_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1316 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1322 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1332 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1337 const uint32_t p0_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1339 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1346 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1352 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1358 const uint32_t p1_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1360 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1370 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1375 const uint32_t p_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1377 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1384 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1390 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1401 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1408 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1413 const uint32_t p_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1415 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1425 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1433 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1441 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateExtInst()
1443 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1455 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1463 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1469 const uint32_t a_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1470 const uint32_t b_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1471 const uint32_t c_type = _.GetOperandTypeId(inst, 6); in ValidateExtInst()
1474 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1480 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1486 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1492 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1499 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1510 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1517 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1522 const uint32_t offset_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1523 const uint32_t p_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1527 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1534 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1544 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1551 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1558 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1564 const uint32_t n_value = inst->word(7); in ValidateExtInst()
1566 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1576 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1580 const uint32_t data_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1581 const uint32_t offset_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1582 const uint32_t p_type = _.GetOperandTypeId(inst, 6); in ValidateExtInst()
1585 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1592 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1599 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1606 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1616 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1622 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1628 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1638 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1643 const uint32_t offset_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1644 const uint32_t p_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1648 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1655 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1665 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1675 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1683 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1693 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1700 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1705 const uint32_t offset_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1706 const uint32_t p_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1710 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1717 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1727 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1737 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1745 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1750 const uint32_t n_value = inst->word(7); in ValidateExtInst()
1752 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1767 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1771 const uint32_t data_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1772 const uint32_t offset_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1773 const uint32_t p_type = _.GetOperandTypeId(inst, 6); in ValidateExtInst()
1780 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1787 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1795 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1803 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1810 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1820 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1829 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1837 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1850 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1858 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1864 const uint32_t x_type = _.GetOperandTypeId(inst, operand_index++); in ValidateExtInst()
1867 const uint32_t y_type = _.GetOperandTypeId(inst, operand_index++); in ValidateExtInst()
1869 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1876 _.GetOperandTypeId(inst, operand_index++); in ValidateExtInst()
1879 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1887 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1895 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1902 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1908 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1916 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1927 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1932 const uint32_t format_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1937 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1943 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1950 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1959 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1963 const uint32_t p_type = _.GetOperandTypeId(inst, 4); in ValidateExtInst()
1964 const uint32_t num_elements_type = _.GetOperandTypeId(inst, 5); in ValidateExtInst()
1969 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1975 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1982 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1990 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
1998 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
2005 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateExtInst()
2019 spv_result_t ExtensionPass(ValidationState_t& _, const Instruction* inst) { in ExtensionPass() argument
2020 const SpvOp opcode = inst->opcode(); in ExtensionPass()
2021 if (opcode == SpvOpExtension) return ValidateExtension(_, inst); in ExtensionPass()
2022 if (opcode == SpvOpExtInstImport) return ValidateExtInstImport(_, inst); in ExtensionPass()
2023 if (opcode == SpvOpExtInst) return ValidateExtInst(_, inst); in ExtensionPass()