Changeset 3295 in CLRX


Ignore:
Timestamp:
Sep 2, 2017, 5:59:22 PM (5 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmGallium?: Add '.hsa_scratchbuffer' pseudo-op.

Location:
CLRadeonExtender/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/AsmGalliumFormat.cpp

    r3294 r3295  
    4848    "hsa_localsize", "hsa_pgmrsrc1",
    4949    "hsa_pgmrsrc2", "hsa_priority", "hsa_privmode",
    50     "hsa_sgprsnum", "hsa_tgsize", "hsa_userdatanum", "hsa_vgprsnum",
     50    "hsa_scratchbuffer", "hsa_sgprsnum", "hsa_tgsize",
     51    "hsa_userdatanum", "hsa_vgprsnum",
    5152    "ieeemode", "kcode", "kcodeend",
    5253    "kernarg_segment_align", "kernarg_segment_size",
     
    9091    GALLIUMOP_HSA_LOCALSIZE, GALLIUMOP_HSA_PGMRSRC1,
    9192    GALLIUMOP_HSA_PGMRSRC2, GALLIUMOP_HSA_PRIORITY, GALLIUMOP_HSA_PRIVMODE,
    92     GALLIUMOP_HSA_SGPRSNUM, GALLIUMOP_HSA_TGSIZE,
     93    GALLIUMOP_HSA_SCRATCHBUFFER, GALLIUMOP_HSA_SGPRSNUM, GALLIUMOP_HSA_TGSIZE,
    9394    GALLIUMOP_HSA_USERDATANUM, GALLIUMOP_HSA_VGPRSNUM,
    9495    GALLIUMOP_IEEEMODE, GALLIUMOP_KCODE, GALLIUMOP_KCODEEND,
     
    14851486                                GALLIUMCVAL_HSA_PRIVMODE);
    14861487            break;
     1488        case GALLIUMOP_HSA_SCRATCHBUFFER:
     1489            AsmGalliumPseudoOps::setConfigValue(*this, stmtPlace, linePtr,
     1490                             GALLIUMCVAL_WORKITEM_PRIVATE_SEGMENT_SIZE);
     1491            break;
    14871492        case GALLIUMOP_HSA_SGPRSNUM:
    14881493            AsmGalliumPseudoOps::setConfigValue(*this, stmtPlace, linePtr,
     
    19411946                if (hsaConfig.workgroupGroupSegmentSize != BINGEN_DEFAULT) // local size
    19421947                    config.localSize = hsaConfig.workgroupGroupSegmentSize;
    1943                 if (hsaConfig.workitemPrivateSegmentSize != BINGEN_DEFAULT) // scratch buffer
     1948                if (hsaConfig.workitemPrivateSegmentSize != BINGEN_DEFAULT)
     1949                    // scratch buffer
    19441950                    config.scratchBufferSize = hsaConfig.workitemPrivateSegmentSize;
    19451951               
  • CLRadeonExtender/trunk/doc/ClrxAsmGallium.md

    r3287 r3295  
    319319kernel HSA configuration.
    320320
     321### .hsa_scratchbuffer
     322
     323Syntax: .hsa_scratchbuffer SIZE
     324
     325This pseudo-op must be inside kernel configuration (`.config`) and can ben used only if
     326LLVM version is 4.0.0 or later. Defines scratchbuffer size in kernel HSA configuration.
     327
    321328### .hsa_sgprsnum
    322329
  • CLRadeonExtender/trunk/editors/clrx.vim

    r3289 r3295  
    178178syntax match asmPseudoOps "\.hsa_priority"
    179179syntax match asmPseudoOps "\.hsa_privmode"
     180syntax match asmPseudoOps "\.hsa_scratchbuffer"
    180181syntax match asmPseudoOps "\.hsa_sgprsnum"
    181182syntax match asmPseudoOps "\.hsa_tgsize"
  • CLRadeonExtender/trunk/editors/gedit.lang

    r3289 r3295  
    192192            <keyword>hsa_priority</keyword>
    193193            <keyword>hsa_privmode</keyword>
     194            <keyword>hsa_scratchbuffer</keyword>
    194195            <keyword>hsa_sgprsnum</keyword>
    195196            <keyword>hsa_tgsize</keyword>
  • CLRadeonExtender/trunk/editors/kate.xml

    r3289 r3295  
    18991899            <item>.hsa_priority</item>
    19001900            <item>.hsa_privmode</item>
     1901            <item>.hsa_scratchbuffer</item>
    19011902            <item>.hsa_sgprsnum</item>
    19021903            <item>.hsa_tgsize</item>
  • CLRadeonExtender/trunk/editors/notepad++.xml

    r3289 r3295  
    15191519.hsa_priority
    15201520.hsa_privmode
     1521.hsa_scratchbuffer
    15211522.hsa_sgprsnum
    15221523.hsa_tgsize
Note: See TracChangeset for help on using the changeset viewer.