[all-commits] [llvm/llvm-project] 39af5c: AMDGPU: Fix format string indexes for existing llv...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Jan 13 10:18:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39af5cec8b066901b374ae52179cd378dceb2e0e
      https://github.com/llvm/llvm-project/commit/39af5cec8b066901b374ae52179cd378dceb2e0e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
    A llvm/test/CodeGen/AMDGPU/printf-existing-format-strings.ll

  Log Message:
  -----------
  AMDGPU: Fix format string indexes for existing llvm.printf.fmts

The index stored to the buffer is just an index into this named
metadata. It would more robust to produce a private constant table,
and use a constant expression to index into it.




More information about the All-commits mailing list