mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-02 09:01:37 +00:00
CMake: Reflected changes on source file structure. New plugin support
for llvmc2 incomplete. llvm-svn: 57076
This commit is contained in:
parent
8c3b14fa6d
commit
4bf1c53073
@ -26,6 +26,7 @@ add_llvm_library(LLVMCodeGen
|
|||||||
MachineRegisterInfo.cpp
|
MachineRegisterInfo.cpp
|
||||||
MachineSink.cpp
|
MachineSink.cpp
|
||||||
OcamlGC.cpp
|
OcamlGC.cpp
|
||||||
|
PBQP.cpp
|
||||||
PHIElimination.cpp
|
PHIElimination.cpp
|
||||||
Passes.cpp
|
Passes.cpp
|
||||||
PostRASchedulerList.cpp
|
PostRASchedulerList.cpp
|
||||||
@ -34,6 +35,7 @@ add_llvm_library(LLVMCodeGen
|
|||||||
RegAllocBigBlock.cpp
|
RegAllocBigBlock.cpp
|
||||||
RegAllocLinearScan.cpp
|
RegAllocLinearScan.cpp
|
||||||
RegAllocLocal.cpp
|
RegAllocLocal.cpp
|
||||||
|
RegAllocPBQP.cpp
|
||||||
RegAllocSimple.cpp
|
RegAllocSimple.cpp
|
||||||
RegisterCoalescer.cpp
|
RegisterCoalescer.cpp
|
||||||
RegisterScavenging.cpp
|
RegisterScavenging.cpp
|
||||||
|
@ -1,33 +1,4 @@
|
|||||||
set(LLVM_LINK_COMPONENTS support system)
|
add_subdirectory(driver)
|
||||||
set(LLVM_REQUIRES_EH 1)
|
|
||||||
|
|
||||||
macro(tgen ofn)
|
# TODO: support plugins and user-configured builds.
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
|
# See ./doc/LLVMC-Reference.rst "Customizing LLVMC: the compilation graph"
|
||||||
COMMAND tblgen ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR} -I ${CMAKE_SOURCE_DIR}/lib/Target -I ${llvm_include_path} ${CMAKE_CURRENT_SOURCE_DIR}/Graph.td -o ${ofn}
|
|
||||||
DEPENDS
|
|
||||||
tblgen
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/Common.td
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/Graph.td
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/Tools.td
|
|
||||||
COMMENT "Building ${ofn}..."
|
|
||||||
)
|
|
||||||
endmacro(tgen ofn)
|
|
||||||
|
|
||||||
tgen(AutoGenerated.inc -gen-llvmc)
|
|
||||||
|
|
||||||
add_custom_target(AutoGenerated_ct echo Tablegenning
|
|
||||||
DEPENDS
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/AutoGenerated.inc
|
|
||||||
)
|
|
||||||
|
|
||||||
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|
||||||
|
|
||||||
add_llvm_tool(llvmc2
|
|
||||||
Action.cpp
|
|
||||||
AutoGenerated.cpp
|
|
||||||
CompilationGraph.cpp
|
|
||||||
Plugin.cpp
|
|
||||||
llvmc.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
add_dependencies(llvmc2 AutoGenerated_ct)
|
|
||||||
|
31
tools/llvmc2/driver/CMakeLists.txt
Normal file
31
tools/llvmc2/driver/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
set(LLVM_LINK_COMPONENTS support system)
|
||||||
|
set(LLVM_REQUIRES_EH 1)
|
||||||
|
|
||||||
|
macro(tgen ofn)
|
||||||
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
|
||||||
|
COMMAND tblgen ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR} -I ${CMAKE_SOURCE_DIR}/lib/Target -I ${llvm_include_path} ${CMAKE_CURRENT_SOURCE_DIR}/Graph.td -o ${ofn}
|
||||||
|
DEPENDS
|
||||||
|
tblgen
|
||||||
|
${llvm_include_path}/llvm/CompilerDriver/Common.td
|
||||||
|
${llvm_include_path}/llvm/CompilerDriver/Tools.td
|
||||||
|
COMMENT "Building ${ofn}..."
|
||||||
|
)
|
||||||
|
endmacro(tgen ofn)
|
||||||
|
|
||||||
|
# tgen(AutoGenerated.inc -gen-llvmc)
|
||||||
|
|
||||||
|
# add_custom_target(AutoGenerated_ct echo Tablegenning
|
||||||
|
# DEPENDS
|
||||||
|
# ${CMAKE_CURRENT_BINARY_DIR}/AutoGenerated.inc
|
||||||
|
# )
|
||||||
|
|
||||||
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
||||||
|
|
||||||
|
add_llvm_tool(llvmc2
|
||||||
|
Action.cpp
|
||||||
|
CompilationGraph.cpp
|
||||||
|
llvmc.cpp
|
||||||
|
Plugin.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
# add_dependencies(llvmc2 AutoGenerated_ct)
|
Loading…
Reference in New Issue
Block a user