{
disassembly = opcode;
}
-
- const std::string&
- HsailGPUStaticInst::disassemble()
- {
- if (disassembly.empty()) {
- generateDisassembly();
- assert(!disassembly.empty());
- }
-
- return disassembly;
- }
} // namespace HsailISA
public:
HsailGPUStaticInst(const BrigObject *obj, const std::string &opcode);
void generateDisassembly();
- const std::string &disassemble();
uint32_t instSize() { return 4; }
bool isValid() const override { return true; }
_instNum(0), _scalarOp(false)
{
}
+const std::string&
+GPUStaticInst::disassemble()
+{
+ if (disassembly.empty()) {
+ generateDisassembly();
+ assert(!disassembly.empty());
+ }
+
+ return disassembly;
+}
virtual void execute(GPUDynInstPtr gpuDynInst) = 0;
virtual void generateDisassembly() = 0;
- virtual const std::string &disassemble() = 0;
+ const std::string& disassemble();
virtual int getNumOperands() = 0;
virtual bool isCondRegister(int operandIndex) = 0;
virtual bool isScalarRegister(int operandIndex) = 0;