Changeset 4087 in CLRX


Ignore:
Timestamp:
May 5, 2018, 10:34:55 PM (3 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: First preps to creating livenesses with routines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/AsmRegAlloc.h

    r4071 r4087  
    190190    size_t weight() const
    191191    { return weight_; }
     192};
     193
     194struct CLRX_INTERNAL LastAccessBlockPos
     195{
     196    size_t blockIndex;
     197    bool inSubroutines; // true if last access in some called subroutine
     198};
     199
     200typedef std::unordered_map<AsmSingleVReg, LastAccessBlockPos> LastAccessMap;
     201
     202// Routine data for createLivenesses - holds svreg read before writes and
     203// last access of the svregs
     204class CLRX_INTERNAL RoutineDataLv
     205{
     206    std::unordered_set<AsmSingleVReg> readBeforeWrites;
     207    // key - svreg, value - list of the last codeblocks where is svreg
     208    LastAccessMap lastAccessMap;
    192209};
    193210
Note: See TracChangeset for help on using the changeset viewer.