Changeset 2523 in CLRX


Ignore:
Timestamp:
Nov 2, 2016, 9:17:49 AM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: DisasmROCm: add arch_minor and arch_stepping and control_directive dump.

File:
1 edited

Legend:

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

    r2522 r2523  
    1919
    2020#include <CLRX/Config.h>
    21 #include <iostream>
    2221#include <cstdint>
    2322#include <cstdio>
     
    355354        output.write(buf, bufSize);
    356355    }
     356   
     357    output.write("    .control_directive\n", 23);
     358    printDisasmData(sizeof config.controlDirective, config.controlDirective, output, true);
    357359}
    358360
     
    367369    const GPUArchitecture arch = getGPUArchitectureFromDeviceType(rocmInput->deviceType);
    368370    const cxuint maxSgprsNum = getGPUMaxRegistersNum(arch, REGTYPE_SGPR, 0);
     371   
     372    {
     373        char buf[40];
     374        size_t size = snprintf(buf, 40, ".arch_minor %u\n", rocmInput->archMinor);
     375        output.write(buf, size);
     376        size = snprintf(buf, 40, ".arch_stepping %u\n", rocmInput->archStepping);
     377        output.write(buf, size);
     378    }
    369379   
    370380    for (const ROCmDisasmRegionInput& rinput: rocmInput->regions)
Note: See TracChangeset for help on using the changeset viewer.