[PATCH] D78778: [MCAsmInfo] Support UsesCFIForDebug for targets with no exception handling

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 5 10:11:18 PDT 2021


MaskRay accepted this revision.
MaskRay added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/debug_frame.ll:1
 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf -S - | FileCheck --check-prefixes=NOEXCEPTIONS_NOFORCE-DEBUG %s
 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj --force-dwarf-frame-section -o - < %s | llvm-readelf -S - | FileCheck --check-prefixes=NOEXCEPTIONS_FORCE-DEBUG %s
----------------
It should be sufficient testing the default (`-filetype=asm`) and avoiding llvm-readelf -S.

You can then test `.cfi_sections .debug_frame`.


================
Comment at: llvm/test/CodeGen/AMDGPU/split-arg-dbg-value.ll:147
 ; GCN-NEXT:  .Ltmp17:
+; GCN:    .cfi_endproc
   call void @llvm.dbg.value(metadata i8 addrspace(1)* %arg, metadata !76, metadata !DIExpression(DW_OP_constu, 1, DW_OP_swap, DW_OP_xderef)), !dbg !77
----------------
Will be good aligning the directive with other symbol labels.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78778/new/

https://reviews.llvm.org/D78778



More information about the llvm-commits mailing list