[NVPTX] Prefix "$L__" for branch label names
authorDmitry Vassiliev <dvassiliev@accesssoftek.com>
Sat, 30 Apr 2022 19:55:20 +0000 (21:55 +0200)
committerDmitry Vassiliev <dvassiliev@accesssoftek.com>
Sat, 30 Apr 2022 19:55:20 +0000 (21:55 +0200)
commit2e7e0975c0017d2ca5b7563143df0bc8c9d3826d
tree692ec4bd4920bff42a506db2829beb908102c8f3
parent841fffa7451861066403f579b9790e2ae9be469b
[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
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
llvm/test/CodeGen/NVPTX/f16-instructions.ll
llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
llvm/test/DebugInfo/NVPTX/debug-info.ll
llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
llvm/test/DebugInfo/NVPTX/debug-name-table.ll