Changeset 3771 in CLRX


Ignore:
Timestamp:
Feb 12, 2018, 5:06:59 PM (17 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmROCm: Next prepping before implementing section diffs.

Location:
CLRadeonExtender/trunk
Files:
3 edited

Legend:

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

    r3766 r3771  
    201201   
    202202    /// prepare before section diference resolving
    203     virtual void prepareSectionDiffsResolving();
     203    virtual bool prepareSectionDiffsResolving();
    204204};
    205205
     
    560560    const ROCmInput* getOutput() const
    561561    { return &output; }
     562   
     563    bool prepareSectionDiffsResolving();
    562564};
    563565
  • CLRadeonExtender/trunk/amdasm/AsmFormats.cpp

    r3761 r3771  
    167167}
    168168
    169 void AsmFormatHandler::prepareSectionDiffsResolving()
    170 { }
     169bool AsmFormatHandler::prepareSectionDiffsResolving()
     170{
     171    return false;
     172}
    171173
    172174/* raw code handler */
  • CLRadeonExtender/trunk/amdasm/AsmROCmFormat.cpp

    r3766 r3771  
    22212221    }
    22222222    return (size + 15) & ~uint64_t(15);
     2223}
     2224
     2225bool AsmROCmHandler::prepareSectionDiffsResolving()
     2226{
     2227    return false;
    22232228}
    22242229
     
    25712576    dataSymbols.insert(dataSymbols.end(), output.symbols.begin(), output.symbols.end());
    25722577    output.symbols = std::move(dataSymbols);
     2578    if (good)
     2579        binGen.reset(new ROCmBinGenerator(&output));
    25732580    return good;
    25742581}
     
    25762583void AsmROCmHandler::writeBinary(std::ostream& os) const
    25772584{
    2578     ROCmBinGenerator binGenerator(&output);
    2579     binGenerator.generate(os);
     2585    binGen->generate(os);
    25802586}
    25812587
    25822588void AsmROCmHandler::writeBinary(Array<cxbyte>& array) const
    25832589{
    2584     ROCmBinGenerator binGenerator(&output);
    2585     binGenerator.generate(array);
    2586 }
     2590    binGen->generate(array);
     2591}
Note: See TracChangeset for help on using the changeset viewer.