[MIPS GlobalISel] Select MSA vector generic and builtin add
[llvm-complete.git] / utils / gn / secondary / llvm / tools / opt / BUILD.gn
blob2bf062c4dc2387d2f2ef43987524db0a42ebd089
1 executable("opt") {
2   deps = [
3     "//llvm/include/llvm/Config:llvm-config",
4     "//llvm/lib/Analysis",
5     "//llvm/lib/Bitcode/Writer",
6     "//llvm/lib/CodeGen",
7     "//llvm/lib/IR",
8     "//llvm/lib/MC",
9     "//llvm/lib/Passes",
10     "//llvm/lib/Support",
11     "//llvm/lib/Target",
12     "//llvm/lib/Target:TargetsToBuild",
13     "//llvm/lib/Transforms/AggressiveInstCombine",
14     "//llvm/lib/Transforms/Coroutines",
15     "//llvm/lib/Transforms/IPO",
16     "//llvm/lib/Transforms/Instrumentation",
17     "//llvm/lib/Transforms/ObjCARC",
18     "//llvm/lib/Transforms/Scalar",
19     "//llvm/lib/Transforms/Utils",
20     "//llvm/lib/Transforms/Vectorize",
21   ]
22   sources = [
23     "AnalysisWrappers.cpp",
24     "BreakpointPrinter.cpp",
25     "Debugify.cpp",
26     "GraphPrinters.cpp",
27     "NewPMDriver.cpp",
28     "PassPrinters.cpp",
29     "PrintSCC.cpp",
30     "opt.cpp",
31   ]
33   # Support plugins.
34   # FIXME: Disable dead stripping once other binaries are dead-stripped.
35   if (host_os != "mac" && host_os != "win") {
36     # Corresponds to export_executable_symbols() in cmake.
37     ldflags = [ "-rdynamic" ]
38   }