| 62 | } |
| 63 | |
| 64 | GcnInstructionList GcnModule::decodeShader(GcnCodeSlice& slice) const |
| 65 | { |
| 66 | GcnInstructionList insList; |
| 67 | GcnDecodeContext decoder; |
| 68 | |
| 69 | // Decode and save instructions |
| 70 | insList.reserve(m_header.length() / sizeof(uint32_t)); |
| 71 | while (!slice.atEnd()) |
| 72 | { |
| 73 | decoder.decodeInstruction(slice); |
| 74 | |
| 75 | insList.emplace_back( |
| 76 | decoder.getInstruction()); |
| 77 | } |
| 78 | |
| 79 | return insList; |
| 80 | } |
| 81 | |
| 82 | void GcnModule::runAnalyzer( |
| 83 | GcnAnalyzer& analyzer, const GcnInstructionList& insList) const |
no test coverage detected