[all-commits] [llvm/llvm-project] cccef3: [NVPTX] Prefix "$L__" for branch label names

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Mon Feb 14 12:52:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cccef321096c20825fe8738045c1d91d3b9fd57d
      https://github.com/llvm/llvm-project/commit/cccef321096c20825fe8738045c1d91d3b9fd57d
  Author: Dmitry Vassiliev <dvassiliev at accesssoftek.com>
  Date:   2022-02-14 (Mon, 14 Feb 2022)

  Changed paths:
    M llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
    M llvm/test/CodeGen/NVPTX/f16-instructions.ll
    A llvm/test/CodeGen/NVPTX/label-var-prefix.ll
    M llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
    M llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
    M llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
    M llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
    M llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
    M llvm/test/DebugInfo/NVPTX/debug-info.ll
    M llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll

  Log Message:
  -----------
  [NVPTX] Prefix "$L__" for branch label names

A global variable may have the same name as a label, and ptxas does not accept it.
Prefix labels with $L__ to fix this.

Reviewed By: MaskRay, tra

Differential Revision: https://reviews.llvm.org/D119669




More information about the All-commits mailing list