diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.cpp index 228023ef8d5008..880937927cfd74 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.cpp +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.cpp @@ -56,7 +56,7 @@ namespace Hwreg { // Disable lint checking for this block since it makes the table unreadable. // NOLINTBEGIN const CustomOperand Opr[] = { - {}, + {{""}}, {{"HW_REG_MODE"}, ID_MODE}, {{"HW_REG_STATUS"}, ID_STATUS}, {{"HW_REG_TRAPSTS"}, ID_TRAPSTS}, @@ -68,13 +68,13 @@ const CustomOperand Opr[] = { {{"HW_REG_GPR_ALLOC"}, ID_GPR_ALLOC}, {{"HW_REG_LDS_ALLOC"}, ID_LDS_ALLOC}, {{"HW_REG_IB_STS"}, ID_IB_STS}, - {}, - {}, - {}, - {}, - {}, - {}, - {}, + {{""}}, + {{""}}, + {{""}}, + {{""}}, + {{""}}, + {{""}}, + {{""}}, {{"HW_REG_SH_MEM_BASES"}, ID_MEM_BASES, isGFX9Plus}, {{"HW_REG_TBA_LO"}, ID_TBA_LO, isGFX9_GFX10}, {{"HW_REG_TBA_HI"}, ID_TBA_HI, isGFX9_GFX10}, @@ -90,9 +90,9 @@ const CustomOperand Opr[] = { {{"HW_REG_HW_ID1"}, ID_HW_ID1, isGFX10Plus}, {{"HW_REG_HW_ID2"}, ID_HW_ID2, isGFX10Plus}, {{"HW_REG_POPS_PACKER"}, ID_POPS_PACKER, isGFX10}, - {}, - {}, - {}, + {{""}}, + {{""}}, + {{""}}, {{"HW_REG_SHADER_CYCLES"}, ID_SHADER_CYCLES, isGFX10_BEncoding}, // GFX940 specific registers diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.h b/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.h index d08035b77ff478..ec05adb68393c7 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.h +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.h @@ -24,7 +24,7 @@ const int OPR_ID_UNKNOWN = -1; const int OPR_ID_UNSUPPORTED = -2; template struct CustomOperand { - StringLiteral Name = ""; + StringLiteral Name; int Encoding = 0; bool (*Cond)(T Context) = nullptr; };