| 1363 | streamFunctionBody.Add(op1); |
| 1364 | } |
| 1365 | void OpLoad(const int ID, const int typeID, const int variableID, const MemoryAccess ma) |
| 1366 | { |
| 1367 | sbTextFunctionBody << LR"(%)" << ID << LR"( = OpLoad %)" << typeID << LR"( %)" |
| 1368 | << variableID << LR"( )" << MemoryAccessToString(ma) << EndLine; |
| 1369 | |
| 1370 | if (ma != MemoryAccess::None) |
| 1371 | throw NotImplementedException("not support memory access in CodeGenerator::OpLoad(): " + MemoryAccessToString(ma)); |
| 1372 | |
| 1373 | streamFunctionBody.Add(61 + (4 << 16)); |
| 1374 | streamFunctionBody.Add(typeID); |
| 1375 | streamFunctionBody.Add(ID); |
| 1376 | streamFunctionBody.Add(variableID); |
| 1377 | } |
| 1378 | void OpVariable(const int ID, const int typeID, StorageClass store) |
| 1379 | { |
| 1380 | StringBuilder instrBuilder; |
no test coverage detected