[LoongArch] Encode LoongArch specific ELF e_flags to binary by LoongArchTargetStreamer
authorWeining Lu <luweining@loongson.cn>
Tue, 16 Aug 2022 05:37:43 +0000 (13:37 +0800)
committerWeining Lu <luweining@loongson.cn>
Tue, 16 Aug 2022 05:41:50 +0000 (13:41 +0800)
commitd1f36da9e03baeccb2f4dd8095f8aaf5b4547c68
treed10c66ce34d78e72653a0c835e991001c6e85fb7
parentefa8783290d81689054d47bf71de452134bf4910
[LoongArch] Encode LoongArch specific ELF e_flags to binary by LoongArchTargetStreamer

Reference: https://github.com/loongson/LoongArch-Documentation
The last commit hash (main branch) is:
99016636af64d02dee05e39974d4c1e55875c45b

Note:
There are several PRs [1][2][3] that may affect the e_flags.
After they got closed or merged, we should update the implementation here accordingly.

[1] https://github.com/loongson/LoongArch-Documentation/pull/33
[2] https://github.com/loongson/LoongArch-Documentation/pull/47
[2] https://github.com/loongson/LoongArch-Documentation/pull/61

Differential Revision: https://reviews.llvm.org/D130239
llvm/lib/Target/LoongArch/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFStreamer.cpp [new file with mode: 0644]
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFStreamer.h [new file with mode: 0644]
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.cpp
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchTargetStreamer.cpp [new file with mode: 0644]
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchTargetStreamer.h [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/e_flags.ll [new file with mode: 0644]