Changeset 2511 in CLRX


Ignore:
Timestamp:
Oct 30, 2016, 1:20:55 PM (4 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Add DisasmROCm module.

Location:
CLRadeonExtender/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/amdasm/Disassembler.h

    r2492 r2511  
    249249};
    250250
     251struct ROCmDisasmKernelInput
     252{
     253    CString kernelName; ///< kernel name
     254    const cxbyte* setup;
     255    size_t codeSize;
     256    const cxbyte* code;
     257};
     258
     259struct ROCmDisasmInput
     260{
     261    GPUDeviceType deviceType;   ///< GPU device type
     262    uint32_t archMinor;     ///< GPU arch minor
     263    uint32_t archStepping;     ///< GPU arch stepping
     264   
     265    std::vector<ROCmDisasmKernelInput> kernels;    ///< kernel inputs
     266};
    251267
    252268/// whole disassembler input (for Gallium driver GPU binaries)
  • CLRadeonExtender/trunk/amdasm/CMakeLists.txt

    r2431 r2511  
    3333        DisasmAmdCL2.cpp
    3434        DisasmGallium.cpp
     35        DisasmROCm.cpp
    3536        GCNAsmHelpers.cpp
    3637        GCNAssembler.cpp
  • CLRadeonExtender/trunk/amdasm/DisasmInternals.h

    r2365 r2511  
    2929#include <CLRX/amdbin/AmdBinaries.h>
    3030#include <CLRX/amdbin/AmdCL2Binaries.h>
     31#include <CLRX/amdbin/ROCmBinaries.h>
    3132#include <CLRX/amdbin/GalliumBinaries.h>
    3233#include <CLRX/amdasm/Disassembler.h>
     
    5253        size_t& sectionCount, Flags flags);
    5354
     55extern CLRX_INTERNAL void disassembleROCm(std::ostream& output,
     56       const ROCmDisasmInput* rocmInput, ISADisassembler* isaDisassembler,
     57       size_t& sectionCount, Flags flags);
     58
    5459extern CLRX_INTERNAL void disassembleGallium(std::ostream& output,
    5560       const GalliumDisasmInput* galliumInput, ISADisassembler* isaDisassembler,
     
    6469extern CLRX_INTERNAL AmdCL2DisasmInput* getAmdCL2DisasmInputFromBinary(
    6570            const AmdCL2MainGPUBinary& binary);
     71
     72extern CLRX_INTERNAL ROCmDisasmInput* getROCmDisasmInputFromBinary(
     73            GPUDeviceType deviceType, const ROCmBinary& binary, Flags flags);
    6674
    6775extern CLRX_INTERNAL GalliumDisasmInput* getGalliumDisasmInputFromBinary(
Note: See TracChangeset for help on using the changeset viewer.