Changeset 2600 in CLRX


Ignore:
Timestamp:
Dec 1, 2016, 2:00:10 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCm: Change ROCmRegionType::CODE to FKERNEL.

Location:
CLRadeonExtender/trunk
Files:
3 edited

Legend:

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

    r2599 r2600  
    4747};
    4848
     49/// ROCm region/symbol type
    4950enum ROCmRegionType: uint8_t
    5051{
    51     DATA,
    52     CODE,
    53     KERNEL
     52    DATA,   ///< data object
     53    FKERNEL,   ///< function kernel (code)
     54    KERNEL  ///< OpenCL kernel to call ??
    5455};
    5556
  • CLRadeonExtender/trunk/amdasm/DisasmROCm.cpp

    r2599 r2600  
    426426            output.write(rinput.regionName.c_str(), rinput.regionName.size());
    427427            output.put('\n');
     428            if (rinput.type == ROCmRegionType::FKERNEL)
     429                output.write("    .kfunction\n", 15);
    428430            if (doMetadata && doDumpConfig)
    429431                dumpKernelConfig(output, maxSgprsNum, arch,
     
    456458                isaDisassembler->analyzeBeforeDisassemble();
    457459            }
    458             else if (region.type==ROCmRegionType::CODE && doDumpCode)
     460            else if (region.type==ROCmRegionType::FKERNEL && doDumpCode)
    459461            {   // function code
    460462                isaDisassembler->setInput(region.size, code + region.offset,
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r2599 r2600  
    9191                type = ROCmRegionType::KERNEL;
    9292            else if (symType==STT_FUNC)
    93                 type = ROCmRegionType::CODE;
     93                type = ROCmRegionType::FKERNEL;
    9494            symOffsets[j] = std::make_pair(value, j);
    9595            if (type!=ROCmRegionType::DATA && value+0x100 > codeOffset+codeSize)
     
    283283                      symbol.offset, symbol.size);
    284284                break;
    285             case ROCmRegionType::CODE:
     285            case ROCmRegionType::FKERNEL:
    286286                elfsym = ElfSymbol64(symbol.symbolName.c_str(), 4,
    287287                      ELF64_ST_INFO(STB_GLOBAL, STT_FUNC), 0, true,
Note: See TracChangeset for help on using the changeset viewer.