1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= LLVM 4.0 and Clang
9 HOMEPAGE= http://llvm.org/
13 SITES[main]= http://llvm.org/releases/4.0.1/
14 DISTFILE[1]= llvm-4.0.1.src.tar.xz:main
15 DISTFILE[2]= cfe-4.0.1.src.tar.xz:main
17 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= GOLD
22 OPTIONS_STANDARD= GOLD
23 OPT_ON[dragonfly]= GOLD//x86_64
27 USES= cmake ninja ncurses perl:build python:build
28 shebangfix zlib c++:llvm,clang
29 GNOME_COMPONENTS= libxml2
31 DISTNAME= llvm-4.0.1.src
34 LICENSE_NAME= CUSTOM1:"LLVM Release License"
35 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE.TXT
38 CMAKE_BUILD_TYPE= Release
39 CMAKE_INSTALL_PREFIX= {{PREFIX}}/llvm40
40 SHEBANG_FILES= tools/clang/tools/scan-view/bin/scan-view
41 tools/clang/tools/clang-format/git-clang-format
42 tools/clang/tools/clang-format/clang-format-diff.py
44 PLIST_SUB= NAMEBASE="llvm40"
48 CMAKE_ARGS= -DLLVM_BUILD_LLVM_DYLIB=ON
49 -DCMAKE_BUILD_WITH_INSTALL_RPATH=1
50 -DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm40/lib"
51 -DLLVM_HOST_TRIPLE:STRING="{{CONFIGURE_TARGET}}"
52 -DLLVM_PARALLEL_LINK_JOBS=1
53 -DLLVM_PARALLEL_COMPILE_JOBS={{MAKE_JOBS_NUMBER}}
55 [GOLD].DESCRIPTION= Build the LLVM Gold plugin for LTO
56 [GOLD].CMAKE_ARGS_ON= -DLLVM_BINUTILS_INCDIR={{LOCALBASE}}/toolchain/include
59 ${REINPLACE_CMD} -e 's,/usr/local/,${LOCALBASE}/,' \
60 ${WRKSRC}/CMakeLists.txt \
61 ${WRKSRC}/tools/clang/lib/Driver/Tools.cpp
62 ${REINPLACE_CMD} -e 's|@RAVEN_GCC@|${LOCALBASE}/toolchain/gcc9/lib|' \
63 -e 's|@RAVEN_GCC_TARGET@|${LOCALBASE}/toolchain/gcc9/lib/gcc/${CONFIGURE_TARGET}/9.3.0|' \
64 ${WRKSRC}/tools/clang/lib/Driver/ToolChains.cpp \
65 ${WRKSRC}/tools/clang/lib/Driver/Tools.cpp
67 -e 's|@RAVEN_GXX_HEADERS_DIR@|${LOCALBASE}/toolchain/gcc9/include/c++/9.3.0|' \
68 ${WRKSRC}/tools/clang/lib/Driver/ToolChains.cpp \
69 ${WRKSRC}/tools/clang/lib/Frontend/InitHeaderSearch.cpp
72 ${RM} -r ${STAGEDIR}${MANPREFIX}/man
73 ${RM} -r ${STAGEDIR}${PREFIX}/llvm40/share/man
74 ${RM} -r ${STAGEDIR}${PREFIX}/llvm40/include/llvm/MC/MCAnalysis
75 ${INSTALL_PROGRAM} ${WRKDIR}/.build/bin/clang-tblgen \
76 ${STAGEDIR}${PREFIX}/llvm40/bin/
77 ${FIND} ${STAGEDIR}${PREFIX}/llvm40/bin/ -type f ! \( -name git-clang-format -o -name "scan-*" \) \
78 | ${XARGS} ${STRIP_CMD}
79 ${FIND} ${STAGEDIR}${PREFIX}/llvm40/lib/ -type f -name "*.so*" \
80 | ${XARGS} ${STRIP_CMD}
83 ${MV} ${WRKDIR}/cfe-4.0.1.src ${WRKSRC}/tools/clang
85 [FILE:842:descriptions/desc.clang]
86 The LLVM Project is a collection of modular and reusable compiler and
87 toolchain technologies. Despite its name, LLVM has little to do with
88 traditional virtual machines, though it does provide helpful libraries
89 that can be used to build them. The name "LLVM" itself is not an
90 acronym; it is the full name of the project.
92 This package contains Clang is an "LLVM native" C/C++/Objective-C
93 compiler, which aims to deliver amazingly fast compiles (e.g. about 3x
94 faster than GCC when compiling Objective-C code in a debug
95 configuration), extremely useful error and warning messages and to
96 provide a platform for building great source level tools. The Clang
97 Static Analyzer is a tool that automatically finds bugs in your code,
98 and is a great example of the sort of tool that can be built using
99 the Clang frontend as a library to parse C/C++ code.
102 [FILE:834:descriptions/desc.llvm]
103 The LLVM Project is a collection of modular and reusable compiler and
104 toolchain technologies. Despite its name, LLVM has little to do with
105 traditional virtual machines, though it does provide helpful libraries
106 that can be used to build them. The name "LLVM" itself is not an
107 acronym; it is the full name of the project.
109 This package contains the LLVM Core libraries which provide a modern
110 source- and target-independent optimizer, along with code generation
111 support for many popular CPUs (as well as some less common ones!)
112 These libraries are built around a well specified code representation
113 known as the LLVM intermediate representation ("LLVM IR"). The LLVM
114 Core libraries are well documented, and it is particularly easy to
115 invent your own language (or port an existing compiler) to use LLVM
116 as an optimizer and code generator.
120 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 21065652 llvm-4.0.1.src.tar.xz
121 61738a735852c23c3bdbe52d035488cdb2083013f384d67c1ba36fabebd8769b 10933628 cfe-4.0.1.src.tar.xz
124 [FILE:12321:manifests/plist.clang]
135 clang-offload-bundler
140 %%NAMEBASE%%/include/clang-c/
142 CXCompilationDatabase.h
148 %%NAMEBASE%%/include/clang/ARCMigrate/
152 %%NAMEBASE%%/include/clang/AST/
161 ASTMutationListener.h
179 CommentCommandInfo.inc
180 CommentCommandList.inc
181 CommentCommandTraits.h
183 CommentHTMLNamedCharacterReferences.inc
185 CommentHTMLTagsProperties.inc
195 DeclContextInternals.h
205 DependentDiagnostic.h
206 EvaluatedExprVisitor.h
216 MangleNumberingContext.h
218 NestedNameSpecifier.h
226 RecursiveASTVisitor.h
228 SelectorLocationsKind.h
249 %%NAMEBASE%%/include/clang/ASTMatchers/
252 ASTMatchersInternal.h
254 %%NAMEBASE%%/include/clang/ASTMatchers/Dynamic/
259 %%NAMEBASE%%/include/clang/Analysis/
268 %%NAMEBASE%%/include/clang/Analysis/Analyses/
269 CFGReachabilityAnalysis.h
276 PseudoConstantAnalysis.h
280 ThreadSafetyLogical.h
283 ThreadSafetyTraverse.h
285 UninitializedValues.h
286 %%NAMEBASE%%/include/clang/Analysis/DomainSpecific/
289 %%NAMEBASE%%/include/clang/Analysis/FlowSensitive/DataflowValues.h
290 %%NAMEBASE%%/include/clang/Analysis/Support/BumpVector.h
291 %%NAMEBASE%%/include/clang/Basic/
295 AttrHasAttributeImpl.inc
311 BuiltinsWebAssembly.def
321 DiagnosticASTKinds.inc
322 DiagnosticAnalysisKinds.inc
323 DiagnosticCategories.h
324 DiagnosticCommentKinds.inc
325 DiagnosticCommonKinds.inc
326 DiagnosticDriverKinds.inc
327 DiagnosticFrontendKinds.inc
330 DiagnosticIndexName.inc
331 DiagnosticLexKinds.inc
332 DiagnosticOptions.def
334 DiagnosticParseKinds.inc
335 DiagnosticSemaKinds.inc
336 DiagnosticSerializationKinds.inc
337 ExceptionSpecificationType.h
341 FileSystemStatCache.h
368 SourceManagerInternals.h
384 %%NAMEBASE%%/include/clang/CodeGen/
390 ObjectFilePCHContainerOperations.h
392 %%NAMEBASE%%/include/clang/Config/config.h
393 %%NAMEBASE%%/include/clang/Driver/
410 %%NAMEBASE%%/include/clang/Edit/
416 %%NAMEBASE%%/include/clang/Format/Format.h
417 %%NAMEBASE%%/include/clang/Frontend/
420 ChainedDiagnosticConsumer.h
423 CommandLineSourceLoc.h
426 DependencyOutputOptions.h
432 FrontendPluginRegistry.h
435 LayoutOverrideSource.h
436 LogDiagnosticPrinter.h
439 PCHContainerOperations.h
440 PreprocessorOutputOptions.h
441 SerializedDiagnosticPrinter.h
442 SerializedDiagnosticReader.h
443 SerializedDiagnostics.h
445 TextDiagnosticBuffer.h
446 TextDiagnosticPrinter.h
448 VerifyDiagnosticConsumer.h
449 %%NAMEBASE%%/include/clang/FrontendTool/Utils.h
450 %%NAMEBASE%%/include/clang/Index/
451 CodegenNameGenerator.h
457 %%NAMEBASE%%/include/clang/Lex/
458 CodeCompletionHandler.h
460 ExternalPreprocessorSource.h
464 HeaderSearchOptions.h
474 PPConditionalDirectiveRecord.h
478 PreprocessingRecord.h
481 PreprocessorOptions.h
486 %%NAMEBASE%%/include/clang/Parse/
487 AttrParserStringSwitches.inc
491 %%NAMEBASE%%/include/clang/Rewrite/Core/
498 %%NAMEBASE%%/include/clang/Rewrite/Frontend/
503 %%NAMEBASE%%/include/clang/Sema/
504 AnalysisBasedWarnings.h
505 AttrParsedAttrImpl.inc
506 AttrParsedAttrKinds.inc
507 AttrParsedAttrList.inc
508 AttrSpellingListIndex.inc
509 AttrTemplateInstantiate.inc
513 CodeCompleteConsumer.h
514 CodeCompleteOptions.h
523 MultiplexExternalSemaSource.h
528 PrettyDeclStackTrace.h
541 %%NAMEBASE%%/include/clang/Serialization/
543 ASTDeserializationListener.h
551 ModuleFileExtension.h
553 SerializationDiagnostic.h
554 %%NAMEBASE%%/include/clang/StaticAnalyzer/Checkers/
558 MPIFunctionClassifier.h
561 %%NAMEBASE%%/include/clang/StaticAnalyzer/Core/
569 PathDiagnosticConsumers.h
570 %%NAMEBASE%%/include/clang/StaticAnalyzer/Core/BugReporter/
574 CommonBugCategories.h
576 %%NAMEBASE%%/include/clang/StaticAnalyzer/Core/PathSensitive/
612 %%NAMEBASE%%/include/clang/StaticAnalyzer/Frontend/
614 CheckerRegistration.h
617 %%NAMEBASE%%/include/clang/Tooling/
619 CommonOptionsParser.h
620 CompilationDatabase.h
621 CompilationDatabasePluginRegistry.h
625 JSONCompilationDatabase.h
627 RefactoringCallbacks.h
630 %%NAMEBASE%%/include/clang/Tooling/Core/
637 libclang.so.%%LLVM_MAJOR%%
641 libclangASTMatchers.a
646 libclangDynamicASTMatchers.a
650 libclangFrontendTool.a
655 libclangRewriteFrontend.a
657 libclangSerialization.a
658 libclangStaticAnalyzerCheckers.a
659 libclangStaticAnalyzerCore.a
660 libclangStaticAnalyzerFrontend.a
662 libclangToolingCore.a
663 %%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/
664 __clang_cuda_builtin_vars.h
666 __clang_cuda_complex_builtins.h
667 __clang_cuda_intrinsics.h
668 __clang_cuda_math_forward_declares.h
669 __clang_cuda_runtime_wrapper.h
670 __stddef_max_align_t.h
745 %%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/cuda_wrappers/
749 %%NAMEBASE%%/lib/cmake/clang/
751 ClangTargets-%%CMAKE_BUILD_TYPE%%.cmake
753 %%NAMEBASE%%/libexec/
756 %%NAMEBASE%%/share/clang/
757 clang-format-bbedit.applescript
759 clang-format-sublime.py
762 %%NAMEBASE%%/share/scan-build/
765 %%NAMEBASE%%/share/scan-view/
772 %%ONLY-SUNOS%%%%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/
784 [FILE:23927:manifests/plist.llvm]
785 %%GOLD-ON%%%%NAMEBASE%%/lib/LLVMgold.so
833 %%NAMEBASE%%/include/llvm/
838 PassAnalysisSupport.h
842 %%NAMEBASE%%/include/llvm-c/
861 %%NAMEBASE%%/include/llvm-c/Transforms/
866 %%NAMEBASE%%/include/llvm/ADT/
940 %%NAMEBASE%%/include/llvm/Analysis/
942 AliasAnalysisEvaluator.h
947 BlockFrequencyInfoImpl.h
948 BranchProbabilityInfo.h
951 CFLAndersAliasAnalysis.h
952 CFLSteensAliasAnalysis.h
966 DominanceFrontierImpl.h
970 IndirectCallPromotionAnalysis.h
971 IndirectCallSiteVisitor.h
973 InstructionSimplify.h
977 IteratedDominanceFrontier.h
978 LazyBlockFrequencyInfo.h
979 LazyBranchProbabilityInfo.h
985 LoopAnalysisManager.h
992 MemoryDependenceAnalysis.h
994 ModuleSummaryAnalysis.h
995 ObjCARCAliasAnalysis.h
996 ObjCARCAnalysisUtils.h
998 OptimizationDiagnosticInfo.h
1003 ProfileSummaryInfo.h
1011 ScalarEvolutionAliasAnalysis.h
1012 ScalarEvolutionExpander.h
1013 ScalarEvolutionExpressions.h
1014 ScalarEvolutionNormalization.h
1018 TargetLibraryInfo.def
1020 TargetTransformInfo.h
1021 TargetTransformInfoImpl.h
1023 TypeBasedAliasAnalysis.h
1027 %%NAMEBASE%%/include/llvm/AsmParser/
1030 %%NAMEBASE%%/include/llvm/Bitcode/
1038 %%NAMEBASE%%/include/llvm/CodeGen/
1050 DwarfStringPoolEntry.h
1054 FunctionLoweringInfo.h
1061 LatencyPriorityQueue.h
1063 LinkAllAsmWriterComponents.h
1064 LinkAllCodegenComponents.h
1066 LiveIntervalAnalysis.h
1077 MachineBlockFrequencyInfo.h
1078 MachineBranchProbabilityInfo.h
1079 MachineCombinerPattern.h
1080 MachineConstantPool.h
1081 MachineDominanceFrontier.h
1085 MachineFunctionInitializer.h
1086 MachineFunctionPass.h
1088 MachineInstrBuilder.h
1089 MachineInstrBundle.h
1090 MachineInstrBundleIterator.h
1091 MachineJumpTableInfo.h
1095 MachineModuleInfoImpls.h
1097 MachinePassRegistry.h
1098 MachinePostDominators.h
1100 MachineRegisterInfo.h
1103 MachineTraceMetrics.h
1108 PreISelIntrinsicLowering.h
1114 RegisterScavenging.h
1116 ResourcePriorityQueue.h
1120 ScheduleDAGMutation.h
1122 ScheduleHazardRecognizer.h
1124 ScoreboardHazardRecognizer.h
1128 SelectionDAGTargetInfo.h
1133 TargetLoweringObjectFileImpl.h
1136 UnreachableBlockElim.h
1141 %%NAMEBASE%%/include/llvm/CodeGen/GlobalISel/
1146 InstructionSelector.h
1156 %%NAMEBASE%%/include/llvm/CodeGen/MIRParser/MIRParser.h
1157 %%NAMEBASE%%/include/llvm/CodeGen/PBQP/
1163 %%NAMEBASE%%/include/llvm/Config/
1170 %%NAMEBASE%%/include/llvm/DebugInfo/DIContext.h
1171 %%NAMEBASE%%/include/llvm/DebugInfo/CodeView/
1185 ModuleSubstreamVisitor.h
1186 RecordSerialization.h
1187 SymbolDeserializer.h
1188 SymbolDumpDelegate.h
1191 SymbolRecordMapping.h
1193 SymbolVisitorCallbackPipeline.h
1194 SymbolVisitorCallbacks.h
1195 SymbolVisitorDelegate.h
1197 TypeDatabaseVisitor.h
1210 TypeVisitorCallbackPipeline.h
1211 TypeVisitorCallbacks.h
1212 %%NAMEBASE%%/include/llvm/DebugInfo/DWARF/
1213 DWARFAbbreviationDeclaration.h
1214 DWARFAcceleratorTable.h
1218 DWARFDebugArangeSet.h
1221 DWARFDebugInfoEntry.h
1225 DWARFDebugPubTable.h
1226 DWARFDebugRangeList.h
1235 %%NAMEBASE%%/include/llvm/DebugInfo/MSF/
1243 SequencedItemStream.h
1249 %%NAMEBASE%%/include/llvm/DebugInfo/PDB/
1250 ConcreteSymbolEnumerator.h
1263 PDBSymbolAnnotation.h
1265 PDBSymbolCompiland.h
1266 PDBSymbolCompilandDetails.h
1267 PDBSymbolCompilandEnv.h
1272 PDBSymbolFuncDebugEnd.h
1273 PDBSymbolFuncDebugStart.h
1275 PDBSymbolPublicSymbol.h
1277 PDBSymbolTypeArray.h
1278 PDBSymbolTypeBaseClass.h
1279 PDBSymbolTypeBuiltin.h
1280 PDBSymbolTypeCustom.h
1281 PDBSymbolTypeDimension.h
1283 PDBSymbolTypeFriend.h
1284 PDBSymbolTypeFunctionArg.h
1285 PDBSymbolTypeFunctionSig.h
1286 PDBSymbolTypeManaged.h
1287 PDBSymbolTypePointer.h
1288 PDBSymbolTypeTypedef.h
1290 PDBSymbolTypeVTable.h
1291 PDBSymbolTypeVTableShape.h
1293 PDBSymbolUsingNamespace.h
1295 %%NAMEBASE%%/include/llvm/DebugInfo/PDB/DIA/
1297 DIAEnumDebugStreams.h
1298 DIAEnumLineNumbers.h
1299 DIAEnumSourceFiles.h
1307 %%NAMEBASE%%/include/llvm/DebugInfo/PDB/Raw/
1313 ISectionContribVisitor.h
1332 %%NAMEBASE%%/include/llvm/DebugInfo/Symbolize/
1334 SymbolizableModule.h
1336 %%NAMEBASE%%/include/llvm/Demangle/Demangle.h
1337 %%NAMEBASE%%/include/llvm/ExecutionEngine/
1346 ObjectMemoryBuffer.h
1347 OrcMCJITReplacement.h
1348 RTDyldMemoryManager.h
1350 RuntimeDyldChecker.h
1351 SectionMemoryManager.h
1352 %%NAMEBASE%%/include/llvm/ExecutionEngine/Orc/
1353 CompileOnDemandLayer.h
1356 GlobalMappingLayer.h
1363 ObjectLinkingLayer.h
1364 ObjectTransformLayer.h
1367 OrcRemoteTargetClient.h
1368 OrcRemoteTargetRPCAPI.h
1369 OrcRemoteTargetServer.h
1373 %%NAMEBASE%%/include/llvm/IR/
1375 AssemblyAnnotationWriter.h
1401 GetElementPtrTypeIterator.h
1404 GlobalIndirectSymbol.h
1421 IntrinsicsAArch64.td
1425 IntrinsicsHexagon.td
1428 IntrinsicsPowerPC.td
1429 IntrinsicsSystemZ.td
1430 IntrinsicsWebAssembly.td
1435 LegacyPassManagers.h
1436 LegacyPassNameParser.h
1443 ModuleSummaryIndex.h
1444 ModuleSummaryIndexYAML.h
1450 PassManagerInternal.h
1455 SymbolTableListTraits.h
1469 %%NAMEBASE%%/include/llvm/IRReader/IRReader.h
1470 %%NAMEBASE%%/include/llvm/LTO/
1475 %%NAMEBASE%%/include/llvm/LTO/legacy/
1478 ThinLTOCodeGenerator.h
1479 UpdateCompilerUsed.h
1480 %%NAMEBASE%%/include/llvm/LibDriver/LibDriver.h
1481 %%NAMEBASE%%/include/llvm/LineEditor/LineEditor.h
1482 %%NAMEBASE%%/include/llvm/Linker/
1485 %%NAMEBASE%%/include/llvm/MC/
1503 MCFixedLenDisassembler.h
1513 MCInstrItineraries.h
1515 MCLinkerOptimizationHint.h
1516 MCMachObjectWriter.h
1533 MCTargetOptionsCommandFlags.h
1536 MCWinCOFFObjectWriter.h
1541 StringTableBuilder.h
1543 %%NAMEBASE%%/include/llvm/MC/MCDisassembler/
1545 MCExternalSymbolizer.h
1548 %%NAMEBASE%%/include/llvm/MC/MCParser/
1553 MCAsmParserExtension.h
1555 MCParsedAsmOperand.h
1557 %%NAMEBASE%%/include/llvm/Object/
1571 ModuleSummaryIndexObjectFile.h
1579 %%NAMEBASE%%/include/llvm/ObjectYAML/
1586 %%NAMEBASE%%/include/llvm/Option/
1593 %%NAMEBASE%%/include/llvm/Passes/PassBuilder.h
1594 %%NAMEBASE%%/include/llvm/ProfileData/
1603 %%NAMEBASE%%/include/llvm/ProfileData/Coverage/
1605 CoverageMappingReader.h
1606 CoverageMappingWriter.h
1607 %%NAMEBASE%%/include/llvm/Support/
1608 AArch64TargetParser.def
1609 ARMBuildAttributes.h
1633 CrashRecoveryContext.h
1657 FormatVariadicDetails.h
1661 GenericDomTreeConstruction.h
1686 PointerLikeTypeTraits.h
1692 RandomNumberGenerator.h
1694 RecyclingAllocator.h
1732 circular_raw_ostream.h
1739 %%NAMEBASE%%/include/llvm/Support/ELFRelocs/
1756 %%NAMEBASE%%/include/llvm/TableGen/
1763 StringToOffsetTable.h
1765 %%NAMEBASE%%/include/llvm/Target/
1770 TargetCallingConv.td
1771 TargetFrameLowering.h
1774 TargetIntrinsicInfo.h
1777 TargetLoweringObjectFile.h
1782 TargetRegisterInfo.h
1784 TargetSelectionDAG.td
1785 TargetSubtargetInfo.h
1786 %%NAMEBASE%%/include/llvm/Transforms/
1793 PGOInstrumentation.h
1797 %%NAMEBASE%%/include/llvm/Transforms/IPO/
1801 DeadArgumentElimination.h
1803 ForceFunctionAttrs.h
1809 InferFunctionAttrs.h
1814 PassManagerBuilder.h
1816 StripDeadPrototypes.h
1817 WholeProgramDevirt.h
1818 %%NAMEBASE%%/include/llvm/Transforms/InstCombine/
1820 InstCombineWorklist.h
1821 %%NAMEBASE%%/include/llvm/Transforms/Scalar/
1823 AlignmentFromAssumptions.h
1826 CorrelatedValuePropagation.h
1828 DeadStoreElimination.h
1838 LoopAccessAnalysisPrinter.h
1842 LoopIdiomRecognize.h
1847 LoopStrengthReduce.h
1850 LowerExpectIntrinsic.h
1851 LowerGuardIntrinsic.h
1853 MergedLoadStoreMotion.h
1856 PartiallyInlineLibCalls.h
1862 SpeculativeExecution.h
1863 TailRecursionElimination.h
1864 %%NAMEBASE%%/include/llvm/Transforms/Utils/
1865 ASanStackFrameLayout.h
1868 BreakCriticalEdges.h
1870 BypassSlowDivision.h
1877 FunctionComparator.h
1878 FunctionImportUtils.h
1880 ImportedFunctionsInliningStatistics.h
1883 LibCallsShrinkWrap.h
1898 SimplifyInstructions.h
1902 UnifyFunctionExitNodes.h
1905 %%NAMEBASE%%/include/llvm/Transforms/Vectorize/
1908 %%NAMEBASE%%/include/llvm/XRay/
1915 libLLVM-%%LLVM_MAJOR%%.so
1916 libLLVM-%%LLVM_RELEASE%%.so
1918 libLLVMAArch64AsmParser.a
1919 libLLVMAArch64AsmPrinter.a
1920 libLLVMAArch64CodeGen.a
1921 libLLVMAArch64Desc.a
1922 libLLVMAArch64Disassembler.a
1923 libLLVMAArch64Info.a
1924 libLLVMAArch64Utils.a
1925 libLLVMAMDGPUAsmParser.a
1926 libLLVMAMDGPUAsmPrinter.a
1927 libLLVMAMDGPUCodeGen.a
1929 libLLVMAMDGPUDisassembler.a
1931 libLLVMAMDGPUUtils.a
1932 libLLVMARMAsmParser.a
1933 libLLVMARMAsmPrinter.a
1936 libLLVMARMDisassembler.a
1941 libLLVMBPFAsmPrinter.a
1944 libLLVMBPFDisassembler.a
1952 libLLVMDebugInfoCodeView.a
1953 libLLVMDebugInfoDWARF.a
1954 libLLVMDebugInfoMSF.a
1955 libLLVMDebugInfoPDB.a
1957 libLLVMExecutionEngine.a
1959 libLLVMHexagonAsmParser.a
1960 libLLVMHexagonCodeGen.a
1961 libLLVMHexagonDesc.a
1962 libLLVMHexagonDisassembler.a
1963 libLLVMHexagonInfo.a
1965 libLLVMInstCombine.a
1966 libLLVMInstrumentation.a
1967 libLLVMInterpreter.a
1969 libLLVMLanaiAsmParser.a
1970 libLLVMLanaiCodeGen.a
1972 libLLVMLanaiDisassembler.a
1974 libLLVMLanaiInstPrinter.a
1979 libLLVMMCDisassembler.a
1983 libLLVMMSP430AsmPrinter.a
1984 libLLVMMSP430CodeGen.a
1987 libLLVMMipsAsmParser.a
1988 libLLVMMipsAsmPrinter.a
1989 libLLVMMipsCodeGen.a
1991 libLLVMMipsDisassembler.a
1993 libLLVMNVPTXAsmPrinter.a
1994 libLLVMNVPTXCodeGen.a
1997 libLLVMObjCARCOpts.a
2003 libLLVMPowerPCAsmParser.a
2004 libLLVMPowerPCAsmPrinter.a
2005 libLLVMPowerPCCodeGen.a
2006 libLLVMPowerPCDesc.a
2007 libLLVMPowerPCDisassembler.a
2008 libLLVMPowerPCInfo.a
2009 libLLVMProfileData.a
2010 libLLVMRISCVCodeGen.a
2013 libLLVMRuntimeDyld.a
2015 libLLVMSelectionDAG.a
2016 libLLVMSparcAsmParser.a
2017 libLLVMSparcAsmPrinter.a
2018 libLLVMSparcCodeGen.a
2020 libLLVMSparcDisassembler.a
2024 libLLVMSystemZAsmParser.a
2025 libLLVMSystemZAsmPrinter.a
2026 libLLVMSystemZCodeGen.a
2027 libLLVMSystemZDesc.a
2028 libLLVMSystemZDisassembler.a
2029 libLLVMSystemZInfo.a
2032 libLLVMTransformUtils.a
2034 libLLVMX86AsmParser.a
2035 libLLVMX86AsmPrinter.a
2038 libLLVMX86Disassembler.a
2041 libLLVMXCoreAsmPrinter.a
2042 libLLVMXCoreCodeGen.a
2044 libLLVMXCoreDisassembler.a
2049 libLTO.so.%%LLVM_RELEASE%%
2051 %%NAMEBASE%%/lib/cmake/llvm/
2053 AddLLVMDefinitions.cmake
2055 AddSphinxTarget.cmake
2057 CheckCompilerVersion.cmake
2058 CheckLinkerFlag.cmake
2061 DetermineGCCCompatible.cmake
2064 GenerateVersionFromCVS.cmake
2066 HandleLLVMOptions.cmake
2067 HandleLLVMStdlib.cmake
2070 LLVMConfigVersion.cmake
2071 LLVMExports-%%CMAKE_BUILD_TYPE%%.cmake
2073 LLVMExternalProjectUtils.cmake
2074 LLVMInstallSymlink.cmake
2075 LLVMProcessSources.cmake
2077 VersionFromVCS.cmake
2080 [FILE:739:patches/patch-cmake_modules_AddLLVM.cmake]
2081 --- cmake/modules/AddLLVM.cmake.orig 2017-05-19 01:55:05 UTC
2082 +++ cmake/modules/AddLLVM.cmake
2083 @@ -182,9 +182,6 @@ function(add_link_opts target_name)
2084 # ld64's implementation of -dead_strip breaks tools that use plugins.
2085 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
2086 LINK_FLAGS " -Wl,-dead_strip")
2087 - elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
2088 - set_property(TARGET ${target_name} APPEND_STRING PROPERTY
2089 - LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
2090 elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
2091 # Object files are compiled with -ffunction-data-sections.
2092 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks
2095 [FILE:688:patches/patch-include_llvm_ExecutionEngine_Orc_OrcRemoteTargetClient.h]
2096 # Description : Enable LLVM build with gcc 8
2098 --- include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
2099 +++ include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
2100 @@ -687,8 +687,8 @@ private:
2102 uint32_t getTrampolineSize() const { return RemoteTrampolineSize; }
2104 - Expected<std::vector<char>> readMem(char *Dst, JITTargetAddress Src,
2106 + Expected<std::vector<uint8_t>> readMem(char *Dst, JITTargetAddress Src,
2108 // Check for an 'out-of-band' error, e.g. from an MM destructor.
2110 return std::move(ExistingError);
2113 [FILE:569:patches/patch-include_llvm_Support_Host.h]
2114 --- include/llvm/Support/Host.h.orig 2016-10-13 17:43:20 UTC
2115 +++ include/llvm/Support/Host.h
2119 #include <sys/machine.h>
2120 +#elif defined(__sun) & defined(__SVR4)
2121 +# ifndef BYTE_ORDER
2122 +# define LITTLE_ENDIAN 1234
2123 +# define BIG_ENDIAN 4321
2124 +# include <sys/isa_defs.h>
2125 +# ifdef _LITTLE_ENDIAN
2126 +# define BYTE_ORDER LITTLE_ENDIAN
2128 +# ifdef _BIG_ENDIAN
2129 +# define BYTE_ORDER BIG_ENDIAN
2131 +# endif /* BYTE_ORDER */
2133 #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32)
2134 #include <machine/endian.h>
2137 [FILE:420:patches/patch-lib_ObjectYAML_MachOYAML.cpp]
2138 --- lib/ObjectYAML/MachOYAML.cpp.orig 2016-12-22 21:58:03 UTC
2139 +++ lib/ObjectYAML/MachOYAML.cpp
2142 #include <string.h> // For memcpy, memset and strnlen.
2146 +strnlen(const char *s, size_t maxlen)
2149 + for (len = 0; len < maxlen; len++, s++) {
2158 MachOYAML::LoadCommand::~LoadCommand() {}
2161 [FILE:262:patches/patch-lib_Support_Unix_Program.inc]
2162 --- lib/Support/Unix/Program.inc.orig 2016-04-05 20:45:04 UTC
2163 +++ lib/Support/Unix/Program.inc
2167 #ifdef HAVE_POSIX_SPAWN
2169 -#define _RESTRICT_KYWD
2173 #if defined(__APPLE__)
2176 [FILE:1721:patches/patch-tools_clang_lib_Driver_Tools.cpp]
2177 --- tools/clang/lib/Driver/Tools.cpp.orig 2017-04-22 17:20:27 UTC
2178 +++ tools/clang/lib/Driver/Tools.cpp
2179 @@ -3222,13 +3222,13 @@ static void addOpenMPRuntime(ArgStringLi
2181 switch (TC.getDriver().getOpenMPRuntime(Args)) {
2182 case Driver::OMPRT_OMP:
2183 - CmdArgs.push_back("-lomp");
2184 + CmdArgs.push_back("/usr/local/llvm40/lib/libomp.so");
2186 case Driver::OMPRT_GOMP:
2187 - CmdArgs.push_back("-lgomp");
2188 + CmdArgs.push_back("/usr/local/llvm40/lib/libgomp.so");
2190 case Driver::OMPRT_IOMP5:
2191 - CmdArgs.push_back("-liomp5");
2192 + CmdArgs.push_back("/usr/local/llvm40/lib/libiomp5.so");
2194 case Driver::OMPRT_Unknown:
2195 // Already diagnosed.
2196 @@ -10246,17 +10246,15 @@ void gnutools::Linker::ConstructJob(Comp
2197 // Also link the particular OpenMP runtimes.
2198 switch (ToolChain.getDriver().getOpenMPRuntime(Args)) {
2199 case Driver::OMPRT_OMP:
2200 - CmdArgs.push_back("-lomp");
2201 + CmdArgs.push_back("/usr/local/llvm40/lib/libomp.so");
2203 case Driver::OMPRT_GOMP:
2204 - CmdArgs.push_back("-lgomp");
2206 - // FIXME: Exclude this for platforms with libgomp that don't require
2207 - // librt. Most modern Linux platforms require it, but some may not.
2208 - CmdArgs.push_back("-lrt");
2209 + CmdArgs.push_back("/usr/local/llvm40/lib/libgomp.so");
2210 + if (ToolChain.getTriple().getOS() == llvm::Triple::Linux)
2211 + CmdArgs.push_back("-lrt");
2213 case Driver::OMPRT_IOMP5:
2214 - CmdArgs.push_back("-liomp5");
2215 + CmdArgs.push_back("/usr/local/llvm40/lib/libiomp5.so");
2217 case Driver::OMPRT_Unknown:
2218 // Already diagnosed.
2221 [FILE:486:patches/patch-tools_clang_lib_Lex_HeaderMap.cpp]
2222 --- tools/clang/lib/Lex/HeaderMap.cpp.orig 2016-10-01 16:38:28 UTC
2223 +++ tools/clang/lib/Lex/HeaderMap.cpp
2225 #include "llvm/Support/Debug.h"
2231 +strnlen(const char *s, size_t maxlen)
2234 + for (len = 0; len < maxlen; len++, s++) {
2241 using namespace clang;
2243 /// HashHMapKey - This is the 'well known' hash function required by the file
2246 [FILE:431:patches/patch-tools_llvm-pdbdump_LLVMOutputStyle.cpp]
2247 --- tools/llvm-pdbdump/LLVMOutputStyle.cpp.orig 2017-01-11 23:24:22 UTC
2248 +++ tools/llvm-pdbdump/LLVMOutputStyle.cpp
2251 #include <unordered_map>
2255 +strnlen(const char *s, size_t maxlen)
2258 + for (len = 0; len < maxlen; len++, s++) {
2265 using namespace llvm;
2266 using namespace llvm::codeview;
2267 using namespace llvm::msf;
2270 [FILE:874:patches/patch-tools_llvm-shlib_CMakeLists.txt]
2271 --- tools/llvm-shlib/CMakeLists.txt.orig 2016-11-01 20:19:33 UTC
2272 +++ tools/llvm-shlib/CMakeLists.txt
2273 @@ -37,11 +37,13 @@ endif()
2274 add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
2276 list(REMOVE_DUPLICATES LIB_NAMES)
2277 -if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR MINGW) # FIXME: It should be "GNU ld for elf"
2278 +if(CMAKE_SYSTEM_NAME MATCHES "Linux|FreeBSD|DragonFly" OR MINGW) # FIXME: It should be "GNU ld for elf"
2279 # GNU ld doesn't resolve symbols in the version script.
2280 set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
2281 elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
2282 set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
2283 +elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
2284 + set(LIB_NAMES -Wl,-Bsymbolic -Wl,-z -Wl,allextract ${LIB_NAMES} -Wl,-z -Wl,defaultextract)
2287 target_link_libraries(LLVM PRIVATE ${LIB_NAMES})
2290 [FILE:384:patches/patch-tools_obj2yaml_macho2yaml.cpp]
2291 --- tools/obj2yaml/macho2yaml.cpp.orig 2016-12-22 21:58:03 UTC
2292 +++ tools/obj2yaml/macho2yaml.cpp
2295 #include <string.h> // for memcpy
2299 +strnlen(const char *s, size_t maxlen)
2302 + for (len = 0; len < maxlen; len++, s++) {
2309 using namespace llvm;
2314 [FILE:536:dragonfly/patch-cmake_modules_HandleLLVMOptions.cmake]
2315 --- cmake/modules/HandleLLVMOptions.cmake.orig 2016-06-30 20:15:44.000000000 +0300
2316 +++ cmake/modules/HandleLLVMOptions.cmake
2317 @@ -103,6 +103,7 @@ endif()
2318 # Pass -Wl,-z,defs. This makes sure all symbols are defined. Otherwise a DSO
2319 # build might work on ELF but fail on MachO/COFF.
2320 if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR CYGWIN OR
2321 + ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" OR
2322 ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
2323 ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") AND
2324 NOT LLVM_USE_SANITIZER)
2327 [FILE:870:dragonfly/patch-tools_clang_lib_Driver_ToolChains.cpp]
2328 --- tools/clang/lib/Driver/ToolChains.cpp.orig 2017-01-10 21:13:08 UTC
2329 +++ tools/clang/lib/Driver/ToolChains.cpp
2330 @@ -4860,7 +4860,8 @@ DragonFly::DragonFly(const Driver &D, co
2332 getFilePaths().push_back(getDriver().Dir + "/../lib");
2333 getFilePaths().push_back("/usr/lib");
2334 - getFilePaths().push_back("/usr/lib/gcc50");
2335 + getFilePaths().push_back("@RAVEN_GCC@");
2336 + getFilePaths().push_back("@RAVEN_GCC_TARGET@");
2339 Tool *DragonFly::buildAssembler() const {
2340 @@ -4871,6 +4872,8 @@ Tool *DragonFly::buildLinker() const {
2341 return new tools::dragonfly::Linker(*this);
2344 +bool DragonFly::HasNativeLLVMSupport() const { return true; }
2346 /// CUDA toolchain. Our assembler is ptxas, and our "linker" is fatbinary,
2347 /// which isn't properly a linker but nonetheless performs the step of stitching
2348 /// together object files from the assembler into a single blob.
2351 [FILE:368:dragonfly/patch-tools_clang_lib_Driver_ToolChains.h]
2352 --- tools/clang/lib/Driver/ToolChains.h.orig 2017-01-05 16:52:29 UTC
2353 +++ tools/clang/lib/Driver/ToolChains.h
2354 @@ -854,6 +854,8 @@ public:
2355 DragonFly(const Driver &D, const llvm::Triple &Triple,
2356 const llvm::opt::ArgList &Args);
2358 + bool HasNativeLLVMSupport() const override;
2360 bool IsMathErrnoDefault() const override { return false; }
2365 [FILE:1854:dragonfly/patch-tools_clang_lib_Driver_Tools.cpp]
2366 --- tools/clang/lib/Driver/Tools.cpp.orig 2017-04-22 17:20:27 UTC
2367 +++ tools/clang/lib/Driver/Tools.cpp
2368 @@ -10714,7 +10714,7 @@ void dragonfly::Linker::ConstructJob(Com
2369 CmdArgs.push_back("-Bshareable");
2371 CmdArgs.push_back("-dynamic-linker");
2372 - CmdArgs.push_back("/usr/libexec/ld-elf.so.2");
2373 + CmdArgs.push_back("/libexec/ld-elf.so.2");
2375 CmdArgs.push_back("--hash-style=gnu");
2376 CmdArgs.push_back("--enable-new-dtags");
2377 @@ -10757,17 +10757,20 @@ void dragonfly::Linker::ConstructJob(Com
2378 Args.MakeArgString(getToolChain().GetFilePath("crtbegin.o")));
2381 + if (D.isUsingLTO())
2382 + AddGoldPlugin(getToolChain(), Args, CmdArgs, D.getLTOMode() == LTOK_Thin, D);
2384 Args.AddAllArgs(CmdArgs,
2385 {options::OPT_L, options::OPT_T_Group, options::OPT_e});
2387 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
2389 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
2390 - CmdArgs.push_back("-L/usr/lib/gcc50");
2391 + CmdArgs.push_back("-L@RAVEN_GCC@");
2393 if (!Args.hasArg(options::OPT_static)) {
2394 CmdArgs.push_back("-rpath");
2395 - CmdArgs.push_back("/usr/lib/gcc50");
2396 + CmdArgs.push_back("@RAVEN_GCC@");
2400 @@ -10787,16 +10790,7 @@ void dragonfly::Linker::ConstructJob(Com
2401 CmdArgs.push_back("-lgcc");
2402 CmdArgs.push_back("-lgcc_eh");
2404 - if (Args.hasArg(options::OPT_shared_libgcc)) {
2405 - CmdArgs.push_back("-lgcc_pic");
2406 - if (!Args.hasArg(options::OPT_shared))
2407 - CmdArgs.push_back("-lgcc");
2409 - CmdArgs.push_back("-lgcc");
2410 - CmdArgs.push_back("--as-needed");
2411 - CmdArgs.push_back("-lgcc_pic");
2412 - CmdArgs.push_back("--no-as-needed");
2414 + CmdArgs.push_back("-lgcc_s");
2420 [FILE:592:dragonfly/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp]
2421 --- tools/clang/lib/Frontend/InitHeaderSearch.cpp.orig 2016-12-02 09:51:51 UTC
2422 +++ tools/clang/lib/Frontend/InitHeaderSearch.cpp
2423 @@ -411,7 +411,9 @@ AddDefaultCPlusPlusIncludePaths(const ll
2426 case llvm::Triple::DragonFly:
2427 - AddPath("/usr/include/c++/5.0", CXXSystem, false);
2428 + AddPath("@RAVEN_GXX_HEADERS_DIR@", CXXSystem, false);
2429 + AddPath("@RAVEN_GXX_HEADERS_DIR@/backward", CXXSystem, false);
2430 + AddPath("@RAVEN_GXX_HEADERS_DIR@/" + triple.getTriple(), CXXSystem, false);
2432 case llvm::Triple::OpenBSD: {
2433 std::string t = triple.getTriple();
2436 [FILE:564:dragonfly/patch-tools_clang_lib_Headers_CMakeLists.txt]
2437 --- tools/clang/lib/Headers/CMakeLists.txt.orig 2015-07-30 22:47:41 UTC
2438 +++ tools/clang/lib/Headers/CMakeLists.txt
2439 @@ -30,7 +30,6 @@ set(files
2447 @@ -45,20 +44,12 @@ set(files
2456 __stddef_max_align_t.h
2470 [FILE:555:dragonfly/patch-wrong_predefs]
2471 --- tools/clang/lib/Basic/Targets.cpp.orig 2017-01-10 08:02:12.000000000 +0200
2472 +++ tools/clang/lib/Basic/Targets.cpp
2473 @@ -302,10 +302,7 @@ protected:
2474 MacroBuilder &Builder) const override {
2475 // DragonFly defines; list based off of gcc output
2476 Builder.defineMacro("__DragonFly__");
2477 - Builder.defineMacro("__DragonFly_cc_version", "100001");
2478 Builder.defineMacro("__ELF__");
2479 - Builder.defineMacro("__KPRINTF_ATTRIBUTE__");
2480 - Builder.defineMacro("__tune_i386__");
2481 DefineStd(Builder, "unix", Opts);