| 1339 | streamFunctionBody.Add(index); |
| 1340 | } |
| 1341 | void OpExtInst(const int ID, const int typeID, const int instrNumber, const List<int> &Arguments) |
| 1342 | { |
| 1343 | sbTextFunctionBody << LR"(%)" << ID << LR"( = OpExtInst %)" << typeID << LR"( %1 )"; |
| 1344 | sbTextFunctionBody << instrNumber; |
| 1345 | for (auto & arg : Arguments) |
| 1346 | sbTextFunctionBody << LR"( %)" << arg; |
| 1347 | sbTextFunctionBody << EndLine; |
| 1348 | |
| 1349 | streamFunctionBody.Add(12 + ((5 + Arguments.Count()) << 16)); |
| 1350 | streamFunctionBody.Add(typeID); |
| 1351 | streamFunctionBody.Add(ID); |
| 1352 | streamFunctionBody.Add(1); //instruction set **<ID>** |
| 1353 | streamFunctionBody.Add(instrNumber); |
| 1354 | for (auto & arg : Arguments) |
| 1355 | streamFunctionBody.Add(arg); |
| 1356 | } |
| 1357 | void OpStore(const int op0, const int op1) |
| 1358 | { |
| 1359 | sbTextFunctionBody << LR"(OpStore %)" << op0 << LR"( %)" << op1 << EndLine; |
no test coverage detected