- Support ABI checking with per function target-features
if users don't specific -mattr, the default target-feature come from IR attribute.
- Enable LTO for RISCV
- Init MCOptions.ABIName via module flag metadata
- do some hack in RISCVAsmBackend
Paths
| Differential D72246
[PoC][RISCV][LTO] Pass target-abi via module flag metadata (solution 2 ) AbandonedPublic Authored by khchen on Jan 5 2020, 10:01 PM.
Details
Summary
if users don't specific -mattr, the default target-feature come from IR attribute.
Diff Detail Event TimelineHerald added subscribers: ormris, vkmr, frasercrmck, jrtc27. · View Herald TranscriptJul 1 2021, 8:16 AM
Revision Contents
Diff 236297 clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Driver/ToolChains/RISCVToolchain.h
clang/lib/Driver/ToolChains/RISCVToolchain.cpp
clang/test/CodeGen/riscv-metadata.c
clang/test/Driver/gold-lto.c
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.cpp
llvm/test/CodeGen/RISCV/module-target-abi.ll
llvm/test/CodeGen/RISCV/subtarget-features-std-ext.ll
llvm/test/CodeGen/RISCV/subtarget-features-target-abi.ll
|