Files
swift-mirror/lib/SILOptimizer/Utils/CMakeLists.txt
Michael Gottesman 9e70b855e4 [cmake] Use a helper macro to simplify adding sources to the SILOptimizer library.
All this does is automate the creation of the ${DIRNAME}_SOURCES variables that we already create and allows for the author to avoid having to prefix with the directory name, i.e.:

set(FOOBAR_SOURCES
  FooBar/Source.cpp
  PARENT_SCOPE)

=>

silopt_register_sources(
  Source.cpp)

Much easier and cleaner to read. I put the code that implements this in the
CMakeLists.txt file just for the SILOptimizer.
2018-06-27 17:48:59 -07:00

20 lines
376 B
CMake

silopt_register_sources(
CFG.cpp
CastOptimizer.cpp
CheckedCastBrJumpThreading.cpp
ConstantFolding.cpp
Devirtualize.cpp
Existential.cpp
GenericCloner.cpp
Generics.cpp
LoadStoreOptUtils.cpp
Local.cpp
LoopUtils.cpp
OptimizerStatsUtils.cpp
PerformanceInlinerUtils.cpp
SILInliner.cpp
SILSSAUpdater.cpp
SpecializationMangler.cpp
StackNesting.cpp
)