Index: llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/AsmPrinter/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/AsmPrinter/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/AsmPrinter/BUILD.gn @@ -0,0 +1,42 @@ +static_library("AsmPrinter") { + output_name = "LLVMAsmPrinter" + deps = [ + "//llvm/lib/Analysis", + "//llvm/lib/BinaryFormat", + "//llvm/lib/CodeGen", + "//llvm/lib/DebugInfo/CodeView", + "//llvm/lib/DebugInfo/MSF", + "//llvm/lib/IR", + "//llvm/lib/MC", + "//llvm/lib/MC/MCParser", + "//llvm/lib/Support", + "//llvm/lib/Target", + ] + sources = [ + "ARMException.cpp", + "AccelTable.cpp", + "AddressPool.cpp", + "AsmPrinter.cpp", + "AsmPrinterDwarf.cpp", + "AsmPrinterInlineAsm.cpp", + "CodeViewDebug.cpp", + "DIE.cpp", + "DIEHash.cpp", + "DbgEntityHistoryCalculator.cpp", + "DebugHandlerBase.cpp", + "DebugLocStream.cpp", + "DwarfCFIException.cpp", + "DwarfCompileUnit.cpp", + "DwarfDebug.cpp", + "DwarfExpression.cpp", + "DwarfFile.cpp", + "DwarfStringPool.cpp", + "DwarfUnit.cpp", + "EHStreamer.cpp", + "ErlangGCPrinter.cpp", + "OcamlGCPrinter.cpp", + "WasmException.cpp", + "WinCFGuard.cpp", + "WinException.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/GlobalISel/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/GlobalISel/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/GlobalISel/BUILD.gn @@ -0,0 +1,34 @@ +static_library("GlobalISel") { + output_name = "LLVMGlobalISel" + deps = [ + "//llvm/include/llvm/Config:config", + "//llvm/include/llvm/Config:llvm-config", + "//llvm/lib/Analysis", + "//llvm/lib/CodeGen", + "//llvm/lib/IR", + "//llvm/lib/MC", + "//llvm/lib/Support", + "//llvm/lib/Target", + "//llvm/lib/Transforms/Utils", + ] + sources = [ + "CallLowering.cpp", + "Combiner.cpp", + "CombinerHelper.cpp", + "GlobalISel.cpp", + "IRTranslator.cpp", + "InstructionSelect.cpp", + "InstructionSelector.cpp", + "LegalityPredicates.cpp", + "LegalizeMutations.cpp", + "Legalizer.cpp", + "LegalizerHelper.cpp", + "LegalizerInfo.cpp", + "Localizer.cpp", + "MachineIRBuilder.cpp", + "RegBankSelect.cpp", + "RegisterBank.cpp", + "RegisterBankInfo.cpp", + "Utils.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/SelectionDAG/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/SelectionDAG/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/lib/CodeGen/SelectionDAG/BUILD.gn @@ -0,0 +1,39 @@ +static_library("SelectionDAG") { + output_name = "LLVMSelectionDAG" + deps = [ + "//llvm/lib/Analysis", + "//llvm/lib/CodeGen", + "//llvm/lib/IR", + "//llvm/lib/MC", + "//llvm/lib/Support", + "//llvm/lib/Target", + "//llvm/lib/Transforms/Utils", + ] + sources = [ + "DAGCombiner.cpp", + "FastISel.cpp", + "FunctionLoweringInfo.cpp", + "InstrEmitter.cpp", + "LegalizeDAG.cpp", + "LegalizeFloatTypes.cpp", + "LegalizeIntegerTypes.cpp", + "LegalizeTypes.cpp", + "LegalizeTypesGeneric.cpp", + "LegalizeVectorOps.cpp", + "LegalizeVectorTypes.cpp", + "ResourcePriorityQueue.cpp", + "ScheduleDAGFast.cpp", + "ScheduleDAGRRList.cpp", + "ScheduleDAGSDNodes.cpp", + "ScheduleDAGVLIW.cpp", + "SelectionDAG.cpp", + "SelectionDAGAddressAnalysis.cpp", + "SelectionDAGBuilder.cpp", + "SelectionDAGDumper.cpp", + "SelectionDAGISel.cpp", + "SelectionDAGPrinter.cpp", + "SelectionDAGTargetInfo.cpp", + "StatepointLowering.cpp", + "TargetLowering.cpp", + ] +}