-set(LLVM_LINK_COMPONENTS jit bitwriter nativecodegen interpreter)
+set(LLVM_LINK_COMPONENTS
+ BitWriter
+ Core
+ ExecutionEngine
+ JIT
+ Support
+ nativecodegen
+ )
add_llvm_example(BrainF
BrainF.cpp
-set(LLVM_LINK_COMPONENTS jit mcjit nativecodegen)
+set(LLVM_LINK_COMPONENTS
+ Core
+ ExecutionEngine
+ MCJIT
+ Support
+ nativecodegen
+ )
+
set(LLVM_REQUIRES_EH 1)
add_llvm_example(ExceptionDemo
-set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
+set(LLVM_LINK_COMPONENTS
+ Core
+ ExecutionEngine
+ Interpreter
+ JIT
+ Support
+ nativecodegen
+ )
add_llvm_example(Fibonacci
fibonacci.cpp
-set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
+set(LLVM_LINK_COMPONENTS
+ Core
+ ExecutionEngine
+ Interpreter
+ JIT
+ Support
+ nativecodegen
+ )
add_llvm_example(HowToUseJIT
HowToUseJIT.cpp
-set(LLVM_LINK_COMPONENTS core)
+set(LLVM_LINK_COMPONENTS
+ Core
+ Support
+ )
add_llvm_example(Kaleidoscope-Ch3
toy.cpp
-set(LLVM_LINK_COMPONENTS core jit interpreter native)
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ Core
+ ExecutionEngine
+ InstCombine
+ JIT
+ ScalarOpts
+ Support
+ nativecodegen
+ )
add_llvm_example(Kaleidoscope-Ch4
toy.cpp
-set(LLVM_LINK_COMPONENTS core jit interpreter native)
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ Core
+ ExecutionEngine
+ InstCombine
+ JIT
+ ScalarOpts
+ Support
+ nativecodegen
+ )
add_llvm_example(Kaleidoscope-Ch5
toy.cpp
-set(LLVM_LINK_COMPONENTS core jit interpreter native)
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ Core
+ ExecutionEngine
+ InstCombine
+ JIT
+ ScalarOpts
+ Support
+ nativecodegen
+ )
add_llvm_example(Kaleidoscope-Ch6
toy.cpp
-set(LLVM_LINK_COMPONENTS core jit interpreter native)
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ Core
+ ExecutionEngine
+ InstCombine
+ JIT
+ ScalarOpts
+ Support
+ TransformUtils
+ nativecodegen
+ )
+
set(LLVM_REQUIRES_RTTI 1)
add_llvm_example(Kaleidoscope-Ch7
-set(LLVM_LINK_COMPONENTS bitwriter)
+set(LLVM_LINK_COMPONENTS
+ BitWriter
+ Core
+ Support
+ )
add_llvm_example(ModuleMaker
ModuleMaker.cpp
-set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
+set(LLVM_LINK_COMPONENTS
+ Core
+ ExecutionEngine
+ Interpreter
+ JIT
+ Support
+ nativecodegen
+ )
add_llvm_example(ParallelJIT
ParallelJIT.cpp
-set(LLVM_LINK_COMPONENTS asmparser instrumentation scalaropts ipo
- linker bitreader bitwriter irreader vectorize objcarcopts)
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ BitWriter
+ Core
+ IPA
+ IPO
+ IRReader
+ InstCombine
+ Instrumentation
+ Linker
+ ObjCARCOpts
+ ScalarOpts
+ Support
+ Target
+ TransformUtils
+ Vectorize
+ )
add_llvm_tool(bugpoint
BugDriver.cpp
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} bitreader asmparser irreader)
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ AsmPrinter
+ CodeGen
+ Core
+ IRReader
+ MC
+ ScalarOpts
+ SelectionDAG
+ Support
+ Target
+ )
add_llvm_tool(llc
llc.cpp
add_subdirectory(ChildTarget)
-set(LLVM_LINK_COMPONENTS mcjit jit interpreter nativecodegen bitreader asmparser irreader selectiondag native instrumentation)
+set(LLVM_LINK_COMPONENTS
+ CodeGen
+ Core
+ ExecutionEngine
+ IRReader
+ Instrumentation
+ Interpreter
+ JIT
+ MCJIT
+ SelectionDAG
+ Support
+ native
+ )
if( LLVM_USE_OPROFILE )
set(LLVM_LINK_COMPONENTS
-set(LLVM_LINK_COMPONENTS support object bitreader)
+set(LLVM_LINK_COMPONENTS
+ Object
+ Support
+ )
add_llvm_tool(llvm-ar
llvm-ar.cpp
-set(LLVM_LINK_COMPONENTS asmparser bitwriter)
+set(LLVM_LINK_COMPONENTS
+ AsmParser
+ BitWriter
+ Core
+ Support
+ )
add_llvm_tool(llvm-as
llvm-as.cpp
-set(LLVM_LINK_COMPONENTS bitreader)
+set(LLVM_LINK_COMPONENTS
+ BitReader
+ Support
+ )
add_llvm_tool(llvm-bcanalyzer
llvm-bcanalyzer.cpp
-set(LLVM_LINK_COMPONENTS all)
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ BitReader
+ Core
+ MCDisassembler
+ Object
+ Target
+ )
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wstrict-prototypes")
-set(LLVM_LINK_COMPONENTS support asmparser bitreader irreader)
+set(LLVM_LINK_COMPONENTS
+ Core
+ IRReader
+ Support
+ )
add_llvm_tool(llvm-diff
llvm-diff.cpp
-set(LLVM_LINK_COMPONENTS bitreader analysis)
+set(LLVM_LINK_COMPONENTS
+ BitReader
+ Core
+ Support
+ )
add_llvm_tool(llvm-dis
llvm-dis.cpp
set(LLVM_LINK_COMPONENTS
DebugInfo
Object
+ Support
)
add_llvm_tool(llvm-dwarfdump
-set(LLVM_LINK_COMPONENTS asmparser ipo bitreader bitwriter irreader)
+set(LLVM_LINK_COMPONENTS
+ BitWriter
+ Core
+ IPO
+ IRReader
+ Support
+ )
add_llvm_tool(llvm-extract
llvm-extract.cpp
-set(LLVM_LINK_COMPONENTS linker bitreader bitwriter asmparser irreader)
+set(LLVM_LINK_COMPONENTS
+ BitWriter
+ Core
+ IRReader
+ Linker
+ Support
+ )
add_llvm_tool(llvm-link
llvm-link.cpp
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} lto support)
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ Core
+ LTO
+ MC
+ Support
+ )
add_llvm_tool(llvm-lto
llvm-lto.cpp
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support MC MCParser MCDisassembler)
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ MC
+ MCParser
+ Support
+ )
add_llvm_tool(llvm-mc
llvm-mc.cpp
-set(LLVM_LINK_COMPONENTS bitreader object)
+set(LLVM_LINK_COMPONENTS
+ BitReader
+ Core
+ Object
+ Support
+ )
add_llvm_tool(llvm-nm
llvm-nm.cpp
${LLVM_TARGETS_TO_BUILD}
DebugInfo
MC
- MCParser
- MCDisassembler
Object
+ Support
)
add_llvm_tool(llvm-objdump
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
- bitreader
- object)
+ Object
+ Support
+ )
add_llvm_tool(llvm-readobj
llvm-readobj.cpp
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support MC object RuntimeDyld JIT debuginfo)
+set(LLVM_LINK_COMPONENTS
+ DebugInfo
+ ExecutionEngine
+ RuntimeDyld
+ Support
+ )
add_llvm_tool(llvm-rtdyld
llvm-rtdyld.cpp
-set(LLVM_LINK_COMPONENTS object)
+set(LLVM_LINK_COMPONENTS
+ Object
+ Support
+ )
add_llvm_tool(llvm-size
llvm-size.cpp
-set(LLVM_LINK_COMPONENTS bitreader asmparser bitwriter instrumentation scalaropts ipo)
+set(LLVM_LINK_COMPONENTS
+ Core
+ IPA
+ Support
+ )
add_llvm_tool(llvm-stress
llvm-stress.cpp
set(LLVM_LINK_COMPONENTS
DebugInfo
Object
+ Support
)
add_llvm_tool(llvm-symbolizer
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
- ipo scalaropts linker bitreader bitwriter lto mcdisassembler vectorize)
+ Core
+ LTO
+ MC
+ Support
+ )
add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" )
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support object)
+set(LLVM_LINK_COMPONENTS
+ Object
+ Support
+ )
add_llvm_tool(macho-dump
macho-dump.cpp
-set(LLVM_LINK_COMPONENTS object)
+set(LLVM_LINK_COMPONENTS
+ Object
+ Support
+ )
add_llvm_utility(obj2yaml
obj2yaml.cpp coff2yaml.cpp
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} bitreader asmparser bitwriter irreader instrumentation scalaropts objcarcopts ipo vectorize)
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ Analysis
+ BitWriter
+ Core
+ IPA
+ IPO
+ IRReader
+ InstCombine
+ Instrumentation
+ MC
+ ObjCARCOpts
+ ScalarOpts
+ Support
+ Target
+ TransformUtils
+ Vectorize
+ )
add_llvm_tool(opt
AnalysisWrappers.cpp
-set(LLVM_LINK_COMPONENTS object)
+set(LLVM_LINK_COMPONENTS
+ Object
+ Support
+ )
add_llvm_utility(yaml2obj
yaml2obj.cpp
set(LLVM_LINK_COMPONENTS
Analysis
AsmParser
+ Core
+ Support
)
add_llvm_unittest(AnalysisTests
set(LLVM_LINK_COMPONENTS
BitReader
BitWriter
+ Core
+ Support
)
add_llvm_unittest(BitcodeTests
set(LLVM_LINK_COMPONENTS
- asmprinter
- codegen
- support
+ AsmPrinter
+ Support
)
set(CodeGenSources
set(LLVM_LINK_COMPONENTS
- debuginfo
- object
- support
+ DebugInfo
)
set(DebugInfoSources
set(LLVM_LINK_COMPONENTS
- interpreter
+ Core
+ ExecutionEngine
+ Interpreter
+ Support
)
add_llvm_unittest(ExecutionEngineTests
set(LLVM_LINK_COMPONENTS
- asmparser
- bitreader
- bitwriter
- jit
+ AsmParser
+ BitReader
+ BitWriter
+ Core
+ ExecutionEngine
+ JIT
+ Support
nativecodegen
)
set(LLVM_LINK_COMPONENTS
- asmparser
- bitreader
- bitwriter
- mcjit
+ Analysis
+ Core
+ ExecutionEngine
+ JIT
+ MCJIT
+ ScalarOpts
+ Support
+ Target
nativecodegen
)
set(LLVM_LINK_COMPONENTS
- asmparser
- core
- ipa
+ Analysis
+ AsmParser
+ Core
+ IPA
+ Support
)
set(IRSources
set(LLVM_LINK_COMPONENTS
- object
+ Object
+ Support
)
add_llvm_unittest(ObjectTests
set(LLVM_LINK_COMPONENTS
+ Core
Instrumentation
+ Support
)
add_llvm_unittest(DebugIRTests
set(LLVM_LINK_COMPONENTS
+ Core
+ Support
TransformUtils
)