2016-11-02 00:40:28 +01:00
|
|
|
set(LLVM_TARGET_DEFINITIONS RISCV.td)
|
|
|
|
|
2017-08-08 16:32:35 +02:00
|
|
|
tablegen(LLVM RISCVGenAsmMatcher.inc -gen-asm-matcher)
|
2017-08-15 15:08:29 +02:00
|
|
|
tablegen(LLVM RISCVGenAsmWriter.inc -gen-asm-writer)
|
2017-10-19 23:37:38 +02:00
|
|
|
tablegen(LLVM RISCVGenDAGISel.inc -gen-dag-isel)
|
2017-09-17 16:36:28 +02:00
|
|
|
tablegen(LLVM RISCVGenDisassemblerTables.inc -gen-disassembler)
|
2018-04-04 14:37:44 +02:00
|
|
|
tablegen(LLVM RISCVGenInstrInfo.inc -gen-instr-info)
|
|
|
|
tablegen(LLVM RISCVGenMCCodeEmitter.inc -gen-emitter)
|
|
|
|
tablegen(LLVM RISCVGenMCPseudoLowering.inc -gen-pseudo-lowering)
|
|
|
|
tablegen(LLVM RISCVGenRegisterInfo.inc -gen-register-info)
|
|
|
|
tablegen(LLVM RISCVGenSubtargetInfo.inc -gen-subtarget)
|
2016-11-02 00:40:28 +01:00
|
|
|
|
|
|
|
add_public_tablegen_target(RISCVCommonTableGen)
|
|
|
|
|
2016-11-01 18:27:54 +01:00
|
|
|
add_llvm_target(RISCVCodeGen
|
2017-10-19 23:37:38 +02:00
|
|
|
RISCVAsmPrinter.cpp
|
|
|
|
RISCVFrameLowering.cpp
|
|
|
|
RISCVInstrInfo.cpp
|
|
|
|
RISCVISelDAGToDAG.cpp
|
|
|
|
RISCVISelLowering.cpp
|
|
|
|
RISCVMCInstLower.cpp
|
|
|
|
RISCVRegisterInfo.cpp
|
|
|
|
RISCVSubtarget.cpp
|
2016-11-01 18:27:54 +01:00
|
|
|
RISCVTargetMachine.cpp
|
[RISCV] Use init_array instead of ctors for RISCV target, by default
Summary:
LLVM defaults to the newer .init_array/.fini_array scheme for static
constructors rather than the less desirable .ctors/.dtors (the UseCtors
flag defaults to false). This wasn't being respected in the RISC-V
backend because it fails to call TargetLoweringObjectFileELF::InitializeELF with the the appropriate
flag for UseInitArray.
This patch fixes this by implementing RISCVELFTargetObjectFile and overriding its Initialize method to call
InitializeELF(TM.Options.UseInitArray).
Reviewers: asb, apazos
Reviewed By: asb
Subscribers: mgorny, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, llvm-commits
Differential Revision: https://reviews.llvm.org/D44750
llvm-svn: 328433
2018-03-24 19:37:19 +01:00
|
|
|
RISCVTargetObjectFile.cpp
|
2016-11-01 18:27:54 +01:00
|
|
|
)
|
|
|
|
|
2017-08-08 16:32:35 +02:00
|
|
|
add_subdirectory(AsmParser)
|
2017-09-17 16:36:28 +02:00
|
|
|
add_subdirectory(Disassembler)
|
2017-08-15 15:08:29 +02:00
|
|
|
add_subdirectory(InstPrinter)
|
2016-11-02 00:47:30 +01:00
|
|
|
add_subdirectory(MCTargetDesc)
|
2017-08-15 15:08:29 +02:00
|
|
|
add_subdirectory(TargetInfo)
|