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