llvm-project/llvm/lib/MC/MCParser
Yuanfang Chen b4a8c0ebb6 [LTO][MC] Discard non-prevailing defined symbols in module-level assembly
This is the alternative approach to D96931.

In LTO, for each module with inlineasm block, prepend directive ".lto_discard <sym>, <sym>*" to the beginning of the inline
asm.  ".lto_discard" is both a module inlineasm block marker and (optionally) provides a list of symbols to be discarded.

In MC while emitting for inlineasm, discard symbol binding & symbol
definitions according to ".lto_disard".

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D98762
2021-03-18 15:33:42 -07:00
..
AsmLexer.cpp Revert "[AsmParser][SystemZ][z/OS] Reland "Introduce HLASM Comment Syntax"" 2021-03-16 18:39:04 -04:00
AsmParser.cpp [LTO][MC] Discard non-prevailing defined symbols in module-level assembly 2021-03-18 15:33:42 -07:00
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
COFFAsmParser.cpp [MC] Delete unused declarations 2020-12-06 15:36:39 -08:00
COFFMasmParser.cpp [llvm] Don't include StringSwitch.h where unnecessary (NFC) 2021-01-21 19:59:48 -08:00
DarwinAsmParser.cpp Support `#pragma clang section` directives on MachO targets 2021-02-25 09:30:10 -08:00
ELFAsmParser.cpp [LTO][MC] Discard non-prevailing defined symbols in module-level assembly 2021-03-18 15:33:42 -07:00
MCAsmLexer.cpp
MCAsmParser.cpp [MC] Add parseEOL() overload and migrate some parseToken(AsmToken::EndOfStatement) to parseEOL() 2021-03-06 17:45:23 -08:00
MCAsmParserExtension.cpp [COFF] Add cg_profile directive and .llvm.call-graph-profile section 2020-07-10 17:07:30 -07:00
MCTargetAsmParser.cpp
MasmParser.cpp [llvm] Use llvm::append_range (NFC) 2021-01-06 18:27:33 -08:00
WasmAsmParser.cpp [WebAssembly] Use data sections by default 2021-02-09 11:03:06 -08:00