1set(LLVM_LINK_COMPONENTS 2 Analysis 3 BitReader 4 BitWriter 5 Core 6 Coroutines 7 Coverage 8 IPO 9 IRReader 10 AggressiveInstCombine 11 InstCombine 12 Instrumentation 13 LTO 14 Linker 15 MC 16 ObjCARCOpts 17 Object 18 Passes 19 ProfileData 20 Remarks 21 ScalarOpts 22 Support 23 Target 24 TransformUtils 25 ) 26 27# In a standard Clang+LLVM build, we need to generate intrinsics before 28# building codegen. In a standalone build, LLVM is already built and we don't 29# need this dependency. Furthermore, LLVM doesn't export it so we can't have 30# this dependency. 31set(codegen_deps intrinsics_gen) 32if (CLANG_BUILT_STANDALONE) 33 set(codegen_deps) 34endif() 35 36if (MSVC) 37 set_source_files_properties(CodeGenModule.cpp PROPERTIES COMPILE_FLAGS /bigobj) 38endif() 39 40add_clang_library(clangCodeGen 41 BackendUtil.cpp 42 CGAtomic.cpp 43 CGBlocks.cpp 44 CGBuiltin.cpp 45 CGCUDANV.cpp 46 CGCUDARuntime.cpp 47 CGCXX.cpp 48 CGCXXABI.cpp 49 CGCall.cpp 50 CGClass.cpp 51 CGCleanup.cpp 52 CGCoroutine.cpp 53 CGDebugInfo.cpp 54 CGDecl.cpp 55 CGDeclCXX.cpp 56 CGException.cpp 57 CGExpr.cpp 58 CGExprAgg.cpp 59 CGExprCXX.cpp 60 CGExprComplex.cpp 61 CGExprConstant.cpp 62 CGExprScalar.cpp 63 CGGPUBuiltin.cpp 64 CGLoopInfo.cpp 65 CGNonTrivialStruct.cpp 66 CGObjC.cpp 67 CGObjCGNU.cpp 68 CGObjCMac.cpp 69 CGObjCRuntime.cpp 70 CGOpenCLRuntime.cpp 71 CGOpenMPRuntime.cpp 72 CGOpenMPRuntimeNVPTX.cpp 73 CGRecordLayoutBuilder.cpp 74 CGStmt.cpp 75 CGStmtOpenMP.cpp 76 CGVTT.cpp 77 CGVTables.cpp 78 CodeGenABITypes.cpp 79 CodeGenAction.cpp 80 CodeGenFunction.cpp 81 CodeGenModule.cpp 82 CodeGenPGO.cpp 83 CodeGenTBAA.cpp 84 CodeGenTypes.cpp 85 ConstantInitBuilder.cpp 86 CoverageMappingGen.cpp 87 ItaniumCXXABI.cpp 88 MacroPPCallbacks.cpp 89 MicrosoftCXXABI.cpp 90 ModuleBuilder.cpp 91 ObjectFilePCHContainerOperations.cpp 92 PatternInit.cpp 93 SanitizerMetadata.cpp 94 SwiftCallingConv.cpp 95 TargetInfo.cpp 96 VarBypassDetector.cpp 97 98 DEPENDS 99 ${codegen_deps} 100 101 LINK_LIBS 102 clangAnalysis 103 clangAST 104 clangASTMatchers 105 clangBasic 106 clangFrontend 107 clangLex 108 clangSerialization 109 ) 110