llvm-project/llvm/lib/CodeGen/AsmPrinter
diggerlin fdfe411e7c [AIX] discard the label in the csect of function description and use qualname for linkage
SUMMARY:

SUMMARY
for a source file  "test.c"

void foo() {};

llc will generate assembly code as (assembly patch)
     .globl  foo
     .globl  .foo
     .csect foo[DS]
foo:

        .long   .foo
        .long   TOC[TC0]
        .long   0

   and symbol table as (xcoff object file)
   [4]     m   0x00000004     .data     1  unamex                    foo
   [5]     a4  0x0000000c       0    0     SD       DS    0    0
   [6]     m   0x00000004     .data     1  extern                    foo
   [7]     a4  0x00000004       0    0     LD       DS    0    0

   After first patch, the assembly will be as

        .globl  foo[DS]                 # -- Begin function foo
        .globl  .foo
        .align  2
        .csect foo[DS]
        .long   .foo
        .long   TOC[TC0]
        .long   0

    and symbol table will as
   [6]     m   0x00000004     .data     1  extern                    foo
   [7]     a4  0x00000004       0    0     DS      DS    0    0
Change the code for the assembly path and xcoff objectfile patch for llc.

Reviewers: Jason Liu
Subscribers: wuzish, nemanjai, hiraditya

Differential Revision: https://reviews.llvm.org/D76162
2020-03-26 15:46:52 -04:00
..
ARMException.cpp [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
AccelTable.cpp [MCStreamer] De-capitalize EmitValue EmitIntValue{,InHex} 2020-02-14 23:08:40 -08:00
AddressPool.cpp [MCStreamer] De-capitalize EmitValue EmitIntValue{,InHex} 2020-02-14 23:08:40 -08:00
AddressPool.h
AsmPrinter.cpp [AIX] discard the label in the csect of function description and use qualname for linkage 2020-03-26 15:46:52 -04:00
AsmPrinterDwarf.cpp Support emitting .cfi_undefined in CodeGen 2020-02-25 14:00:01 -05:00
AsmPrinterInlineAsm.cpp [MC] De-capitalize MCStreamer::Emit{Bundle,Addrsig}* etc 2020-02-15 09:11:48 -08:00
ByteStreamer.h [AsmPrinter] De-capitalize some AsmPrinter::Emit* functions 2020-02-13 13:38:33 -08:00
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
CodeViewDebug.cpp Add support for SHA256 source file checksums in debug info 2020-03-12 16:32:05 -07:00
CodeViewDebug.h Revert d91ed80 "[codeview] Reference types in type parent scopes" 2019-11-08 11:30:33 +01:00
DIE.cpp [MCStreamer] De-capitalize EmitValue EmitIntValue{,InHex} 2020-02-14 23:08:40 -08:00
DIEHash.cpp DebugInfo: Simplify emitDebugLocEntry by never passing a null CU 2020-02-03 18:47:14 -08:00
DIEHash.h
DIEHashAttributes.def
DbgEntityHistoryCalculator.cpp [OPT-DBG] Teach DbgEntityHistoryCalculator about meta-instructions. 2019-12-20 14:03:34 +00:00
DebugHandlerBase.cpp [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
DebugLocEntry.h [WebAssembly] Use TargetIndex operands in DbgValue to track WebAssembly operands locations 2019-12-20 14:39:05 -08:00
DebugLocStream.cpp hwasan: add tag_offset DWARF attribute to optimized debug info 2019-12-12 16:18:54 -08:00
DebugLocStream.h hwasan: add tag_offset DWARF attribute to optimized debug info 2019-12-12 16:18:54 -08:00
DwarfCFIException.cpp [AsmPrinter][MCStreamer] De-capitalize EmitInstruction and EmitCFI* 2020-02-13 22:08:55 -08:00
DwarfCompileUnit.cpp [DWARF] Emit DW_AT_call_pc for tail calls 2020-03-24 12:01:55 -07:00
DwarfCompileUnit.h [DWARF] Emit DW_AT_call_pc for tail calls 2020-03-24 12:01:55 -07:00
DwarfDebug.cpp [DWARF] Emit DW_AT_call_pc for tail calls 2020-03-24 12:01:55 -07:00
DwarfDebug.h Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
DwarfException.h
DwarfExpression.cpp Run clang-format on DwarfExpression (NFC) 2020-01-29 10:23:12 -08:00
DwarfExpression.h Run clang-format on DwarfExpression (NFC) 2020-01-29 10:23:12 -08:00
DwarfFile.cpp [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
DwarfFile.h Reapply "NFC: DebugInfo: Refactor RangeSpanList to be a struct, like DebugLocStream::List" 2019-12-18 16:28:19 -08:00
DwarfStringPool.cpp [MCStreamer] De-capitalize EmitValue EmitIntValue{,InHex} 2020-02-14 23:08:40 -08:00
DwarfStringPool.h
DwarfUnit.cpp Add debug info support for Swift/Clang APINotes. 2020-03-11 18:47:30 -07:00
DwarfUnit.h DebugInfo: Move loclist base address from DwarfFile to DebugLocStream 2019-10-17 23:02:19 +00:00
EHStreamer.cpp [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
EHStreamer.h
ErlangGCPrinter.cpp [AsmPrinter] De-capitalize all AsmPrinter::Emit* but EmitInstruction 2020-02-13 17:06:24 -08:00
LLVMBuild.txt [Remarks] Add string deduplication using a string table 2019-04-24 00:06:24 +00:00
OcamlGCPrinter.cpp [MCStreamer] De-capitalize EmitValue EmitIntValue{,InHex} 2020-02-14 23:08:40 -08:00
WasmException.cpp [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
WasmException.h
WinCFGuard.cpp [WinCFG] Handle constant casts carefully in .gfids emission 2019-11-01 13:32:03 -07:00
WinCFGuard.h Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00
WinException.cpp [MC] Add MCStreamer::emitInt{8,16,32,64} 2020-02-29 09:40:21 -08:00
WinException.h [AArch64][Windows] Compute function length correctly in unwind tables. 2019-05-03 00:10:45 +00:00