aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h
diff options
context:
space:
mode:
authorScott Linder <Scott.Linder@amd.com>2023-06-27 19:03:37 +0000
committerScott Linder <Scott.Linder@amd.com>2023-06-29 16:06:09 +0000
commitede070a28d14167daa56cc00befd6e448d457a0e (patch)
treee490e6ccce4ec59a6dbcdb010a06e68d6f13e57b /llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h
parent45c97af55ed62189a43508abf86137eb64b302d3 (diff)
downloadllvm-ede070a28d14167daa56cc00befd6e448d457a0e.zip
llvm-ede070a28d14167daa56cc00befd6e448d457a0e.tar.gz
llvm-ede070a28d14167daa56cc00befd6e448d457a0e.tar.bz2
[NFC][AMDGPU] Refactor AMDGPUDisassembler
Clean up ahead of a patch to fix bugs in the AMDGPUDisassembler. Use split-file to simplify and extend existing kernel-descriptor disassembly tests. Add a comment to AMDHSAKernelDescriptor.h, as at least one small set towards keeping all kernel-descriptor sensitive code in sync. Reviewed By: MaskRay, kzhuravl, arsenm Differential Revision: https://reviews.llvm.org/D130105
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h')
-rw-r--r--llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h b/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h
index 414b963..7a307f6 100644
--- a/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h
+++ b/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h
@@ -167,6 +167,13 @@ public:
DecodeStatus decodeCOMPUTE_PGM_RSRC2(uint32_t FourByteBuffer,
raw_string_ostream &KdStream) const;
+ /// Decode as directives that handle COMPUTE_PGM_RSRC3.
+ /// \param FourByteBuffer - Bytes holding contents of COMPUTE_PGM_RSRC3.
+ /// \param KdStream - Stream to write the disassembled directives to.
+ // NOLINTNEXTLINE(readability-identifier-naming)
+ DecodeStatus decodeCOMPUTE_PGM_RSRC3(uint32_t FourByteBuffer,
+ raw_string_ostream &KdStream) const;
+
DecodeStatus convertEXPInst(MCInst &MI) const;
DecodeStatus convertVINTERPInst(MCInst &MI) const;
DecodeStatus convertFMAanyK(MCInst &MI, int ImmLitIdx) const;