Changeset 4929 in CLRX


Ignore:
Timestamp:
Aug 24, 2019, 9:05:04 PM (4 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCm: ROCm LLVM10 bin format stuff in Disassembler.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

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

    r4787 r4929  
    324324    uint32_t eflags;   ///< ELF header e_flags field
    325325    bool newBinFormat;  ///< new binary format
     326    bool llvm10BinFormat;  ///< new LLVM10 binary format
     327    bool metadataV3;    ///< new metadata v3 format
    326328    std::vector<ROCmDisasmRegionInput> regions;  ///< regions
    327329    size_t codeSize;    ///< code size
  • CLRadeonExtender/trunk/amdasm/DisasmROCm.cpp

    r4880 r4929  
    9090    input->target = binary.getTarget();
    9191    input->newBinFormat = binary.isNewBinaryFormat();
     92    input->llvm10BinFormat = binary.isLLVM10BinaryFormat();
     93    input->metadataV3 = binary.isMetadataV3Format();
    9294    return input.release();
    9395}
     
    844846    }
    845847   
    846     if (rocmInput->newBinFormat)
     848    if (rocmInput->llvm10BinFormat)
     849        output.write(".llvm10binfmt\n", 14);
     850    else if (rocmInput->newBinFormat)
    847851        output.write(".newbinfmt\n", 11);
     852    if (rocmInput->metadataV3)
     853        output.write(".metadatav3\n", 12);
    848854   
    849855    if (!rocmInput->target.empty())
Note: See TracChangeset for help on using the changeset viewer.