1set(LLVM_LINK_COMPONENTS 2 ${LLVM_TARGETS_TO_BUILD} 3 AggressiveInstCombine 4 Analysis 5 BitWriter 6 CodeGen 7 Core 8 Coroutines 9 IPO 10 IRReader 11 InstCombine 12 Instrumentation 13 MC 14 ObjCARCOpts 15 ScalarOpts 16 Support 17 Target 18 TransformUtils 19 Vectorize 20 Passes 21 ) 22 23# Support plugins. 24set(LLVM_NO_DEAD_STRIP 1) 25 26add_llvm_tool(opt 27 AnalysisWrappers.cpp 28 BreakpointPrinter.cpp 29 Debugify.cpp 30 GraphPrinters.cpp 31 NewPMDriver.cpp 32 PassPrinters.cpp 33 PrintSCC.cpp 34 opt.cpp 35 36 DEPENDS 37 intrinsics_gen 38 ) 39export_executable_symbols(opt) 40 41if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS) 42 target_link_libraries(opt PRIVATE Polly) 43endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS) 44