[all-commits] [llvm/llvm-project] e76028: [AMDGPU] Add parseStringOrIntWithPrefix helper in ...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Tue Aug 6 16:20:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e76028a11fd3195a3170c1b0cb308e62e73a05a3
      https://github.com/llvm/llvm-project/commit/e76028a11fd3195a3170c1b0cb308e62e73a05a3
  Author: Stanislav Mekhanoshin <rampitec at users.noreply.github.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
    M llvm/test/MC/AMDGPU/gfx10_asm_vop1.s
    M llvm/test/MC/AMDGPU/gfx10_err_pos.s
    M llvm/test/MC/AMDGPU/gfx12_asm_smem.s

  Log Message:
  -----------
  [AMDGPU] Add parseStringOrIntWithPrefix helper in asm parser (#102213)

When we have a modifier with a value (like dst_sel:DWORD for example) we
only accept symbolic values. SP3 allows to use numberic constants as
well. Adding a helper function to allow both.

Besides the compatibility it is easier to use.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list