Ignore:
Timestamp:
Jun 14, 2017, 6:13:21 PM (2 years ago)
Author:
matszpk
Message:

CLRadeonExtender: CLRX: small typos. GalliumBinary/GalliumDisasm?: Add support new LLVM 3.9.0 (spilledGPR info) and new Mesa3D 17.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/amdbin/GalliumBinaries.h

    r2682 r3150  
    117117    DATA_LOCAL,     ///< local data (???)
    118118    DATA_PRIVATE,   ///< private data (???)
    119     MAX_VALUE = DATA_PRIVATE    ///< last value
     119    TEXT_INTERMEDIATE_170 = 0,
     120    TEXT_LIBRARY_170,
     121    TEXT_EXECUTABLE_170,
     122    DATA_CONSTANT_170,
     123    DATA_GLOBAL_170,
     124    DATA_LOCAL_170,
     125    DATA_PRIVATE_170,
     126    MAX_VALUE = DATA_PRIVATE_170    ///< last value
    120127};
    121128
     
    141148    size_t disasmSize;  ///< disassembly size
    142149    size_t disasmOffset;    ///< disassembly offset
     150    bool llvm390;
    143151   
    144152    /// routine to load binary fro internal ELF
    145153    template<typename ElfBinary>
    146     void loadFromElf(ElfBinary& elfBinary);
     154    void loadFromElf(ElfBinary& elfBinary, size_t kernelsNum);
    147155public:
    148156    /// empty constructor
     
    183191    size_t getDisassemblySize() const
    184192    { return disasmSize; }
     193   
     194    bool isLLVM390() const
     195    { return llvm390; }
    185196};
    186197
     
    198209    GalliumElfBinary32();
    199210    /// constructor
    200     GalliumElfBinary32(size_t binaryCodeSize, cxbyte* binaryCode, Flags creationFlags);
     211    GalliumElfBinary32(size_t binaryCodeSize, cxbyte* binaryCode, Flags creationFlags,
     212            size_t kernelsNum);
    201213    /// destructor
    202214    virtual ~GalliumElfBinary32();
     
    218230    GalliumElfBinary64();
    219231    /// constructor
    220     GalliumElfBinary64(size_t binaryCodeSize, cxbyte* binaryCode, Flags creationFlags);
     232    GalliumElfBinary64(size_t binaryCodeSize, cxbyte* binaryCode, Flags creationFlags,
     233            size_t kernelsNum);
    221234    /// destructor
    222235    virtual ~GalliumElfBinary64();
     
    246259    bool elf64BitBinary;
    247260    std::unique_ptr<GalliumElfBinaryBase> elfBinary;
     261    bool mesa170;
     262   
    248263public:
    249264    /// constructor
     
    329344    const GalliumKernel& getKernel(const char* name) const
    330345    { return kernels[getKernelIndex(name)]; }
     346   
     347    bool isMesa170() const
     348    { return mesa170; };
    331349};
    332350
     
    360378    size_t localSize; ///< used local size (not local defined in kernel arguments)
    361379    uint32_t scratchBufferSize; ///< size of scratch buffer
     380    cxuint spilledVGPRs;
     381    cxuint spilledSGPRs;
    362382};
    363383
Note: See TracChangeset for help on using the changeset viewer.