Changeset 4972 in CLRX


Ignore:
Timestamp:
Sep 19, 2019, 11:10:41 AM (4 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: Asm: Add '.amd3' pseudo-op for new OpenCL binary format for Navi (ROCm LLVM10BinFormat).

File:
1 edited

Legend:

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

    r4968 r4972  
    8686{
    8787    "32bit", "64bit", "abort", "align", "altmacro",
    88     "amd", "amdcl2", "arch", "ascii", "asciz",
     88    "amd", "amd3", "amdcl2", "arch", "ascii", "asciz",
    8989    "balign", "balignl", "balignw", "buggyfplit", "byte",
    9090    "cf_call", "cf_cjump", "cf_end",
     
    129129{
    130130    ASMOP_32BIT = 0, ASMOP_64BIT, ASMOP_ABORT, ASMOP_ALIGN, ASMOP_ALTMACRO,
    131     ASMOP_AMD, ASMOP_AMDCL2, ASMOP_ARCH, ASMOP_ASCII, ASMOP_ASCIZ,
     131    ASMOP_AMD, ASMOP_AMD3, ASMOP_AMDCL2, ASMOP_ARCH, ASMOP_ASCII, ASMOP_ASCIZ,
    132132    ASMOP_BALIGN, ASMOP_BALIGNL, ASMOP_BALIGNW, ASMOP_BUGGYFPLIT, ASMOP_BYTE,
    133133    ASMOP_CF_CALL, ASMOP_CF_CJUMP, ASMOP_CF_END,
     
    258258                        (pseudoOp == ASMOP_ROCM) ? BinaryFormat::ROCM :
    259259                        BinaryFormat::RAWCODE;
     260            }
     261            break;
     262        case ASMOP_AMD3:
     263            if (AsmPseudoOps::checkGarbagesAtEnd(*this, linePtr))
     264            {
     265                if (formatHandler!=nullptr)
     266                    printError(linePtr, "Output format type is already defined");
     267                else
     268                {
     269                    format = BinaryFormat::ROCM;
     270                    newROCmBinFormat = true;
     271                    llvm10BinFormat = true;
     272                    rocmMetadataV3 = true;
     273                }
    260274            }
    261275            break;
Note: See TracChangeset for help on using the changeset viewer.