llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc
jasonliu 5422e81a89 [XCOFF][AIX] Emit TOC entries for object file generation
Summary:
Implement emitTCEntry for PPCTargetXCOFFStreamer.
Add TC csects to TOCCsects for object file writing.

Note:

1. I did not include any raw data testing for this object file generation
because TC entries raw data will all be 0 without relocation implemented.
I will add raw data testing as part of relocation testing later.
2. I removed "Symbol->setFragment(F);" for common symbols because we
 don't need it, and if we have it then we would hit assertions below:
Assertion `(SymbolContents == SymContentsUnset ||
            SymbolContents == SymContentsOffset) &&
            "Cannot get offset for a common/variable symbol"' failed.
3.Fixed incorrect TOC-base alignment.

Differential Revision: https://reviews.llvm.org/D70798
2019-12-04 16:44:44 +00:00
..
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
LLVMBuild.txt [PowerPC] Move InstPrinter files to MCTargetDesc. NFC 2019-05-11 02:33:18 +00:00
PPCAsmBackend.cpp Boilerplate for producing XCOFF object files from the PowerPC backend. 2019-07-09 19:21:01 +00:00
PPCELFObjectWriter.cpp [MC] Minor cleanup to MCFixup::Kind handling. NFC. 2019-08-23 01:00:55 +00:00
PPCFixupKinds.h
PPCInstPrinter.cpp [AIX] TOC pseudo expansion for 64bit large + 64bit small + 32bit large models 2019-10-17 13:20:25 +00:00
PPCInstPrinter.h [PowerPC] Move InstPrinter files to MCTargetDesc. NFC 2019-05-11 02:33:18 +00:00
PPCMCAsmInfo.cpp [AIX] Emit TOC entries for ASM printing 2019-11-27 17:20:55 -05:00
PPCMCAsmInfo.h Boilerplate for producing XCOFF object files from the PowerPC backend. 2019-07-09 19:21:01 +00:00
PPCMCCodeEmitter.cpp Add Triple::isPPC64() 2019-05-16 08:31:22 +00:00
PPCMCCodeEmitter.h
PPCMCExpr.cpp [NFC] Replace 'isDarwin' with 'IsDarwin' 2019-10-06 14:44:22 +00:00
PPCMCExpr.h [NFC] Replace 'isDarwin' with 'IsDarwin' 2019-10-06 14:44:22 +00:00
PPCMCTargetDesc.cpp [XCOFF][AIX] Emit TOC entries for object file generation 2019-12-04 16:44:44 +00:00
PPCMCTargetDesc.h Boilerplate for producing XCOFF object files from the PowerPC backend. 2019-07-09 19:21:01 +00:00
PPCMachObjectWriter.cpp [MC] Minor cleanup to MCFixup::Kind handling. NFC. 2019-08-23 01:00:55 +00:00
PPCPredicates.cpp
PPCPredicates.h
PPCXCOFFObjectWriter.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00