Skip to content

Commit d2d20f8

Browse files
committed
Merge branch 'master' into z80
2 parents a8403f7 + f9c692c commit d2d20f8

File tree

2,445 files changed

+169092
-46881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,445 files changed

+169092
-46881
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BasedOnStyle: LLVM

CMakeLists.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,18 +238,15 @@ if( WIN32 AND NOT CYGWIN )
238238
endif()
239239

240240
# Define options to control the inclusion and default build behavior for
241-
# components which may not strictly be necessary (tools, runtime, examples, and
242-
# tests).
241+
# components which may not strictly be necessary (tools, examples, and tests).
243242
#
244243
# This is primarily to support building smaller or faster project files.
245244
option(LLVM_INCLUDE_TOOLS "Generate build targets for the LLVM tools." ON)
246245
option(LLVM_BUILD_TOOLS
247246
"Build the LLVM tools. If OFF, just generate build targets." ON)
248247

249-
option(LLVM_INCLUDE_RUNTIME "Generate build targets for the LLVM runtimes" ON)
250248
option(LLVM_BUILD_RUNTIME
251-
"Build the LLVM runtime libraries. If OFF, just generate build targets." ON)
252-
249+
"Build the LLVM runtime libraries." ON)
253250
option(LLVM_BUILD_EXAMPLES
254251
"Build the LLVM example programs. If OFF, just generate build targets." OFF)
255252
option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON)
@@ -276,7 +273,7 @@ set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}")
276273
include(HandleLLVMOptions)
277274

278275
# Verify that we can find a Python 2 interpreter. Python 3 is unsupported.
279-
set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 2.4)
276+
set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5)
280277
include(FindPythonInterp)
281278
if( NOT PYTHONINTERP_FOUND )
282279
message(FATAL_ERROR
@@ -463,10 +460,6 @@ if( LLVM_INCLUDE_TOOLS )
463460
add_subdirectory(tools)
464461
endif()
465462

466-
if( LLVM_INCLUDE_RUNTIME )
467-
add_subdirectory(runtime)
468-
endif()
469-
470463
if( LLVM_INCLUDE_EXAMPLES )
471464
add_subdirectory(examples)
472465
endif()
@@ -535,3 +528,4 @@ if(MSVC_VERSION EQUAL 1600)
535528
file(APPEND "${LLVM_SLN_FILENAME}" "\n# This should be regenerated!\n")
536529
endif()
537530
endif()
531+

CREDITS.TXT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ D: Thread Local Storage implementation
430430

431431
N: Bill Wendling
432432
I: wendling
433-
E: wendling@apple.com
434-
D: Release manager
433+
E: isanbard@gmail.com
434+
D: Release manager, IR Linker, LTO
435435
D: Bunches of stuff
436436

437437
N: Bob Wilson

LLVMBuild.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
;===------------------------------------------------------------------------===;
1717

1818
[common]
19-
subdirectories = bindings docs examples lib projects runtime tools utils
19+
subdirectories = bindings docs examples lib projects tools utils
2020

2121
[component_0]
2222
type = Group

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LEVEL := .
1515
# 3. Build IR, which builds the Intrinsics.inc file used by libs.
1616
# 4. Build libs, which are needed by llvm-config.
1717
# 5. Build llvm-config, which determines inter-lib dependencies for tools.
18-
# 6. Build tools, runtime, docs.
18+
# 6. Build tools and docs.
1919
#
2020
# When cross-compiling, there are some things (tablegen) that need to
2121
# be build for the build system first.
@@ -31,7 +31,7 @@ ifeq ($(BUILD_DIRS_ONLY),1)
3131
OPTIONAL_DIRS := tools/clang/utils/TableGen
3232
else
3333
DIRS := lib/Support lib/TableGen utils lib/IR lib tools/llvm-shlib \
34-
tools/llvm-config tools runtime docs unittests
34+
tools/llvm-config tools docs unittests
3535
OPTIONAL_DIRS := projects bindings
3636
endif
3737

@@ -52,17 +52,17 @@ ifneq ($(ENABLE_DOCS),1)
5252
endif
5353

5454
ifeq ($(MAKECMDGOALS),libs-only)
55-
DIRS := $(filter-out tools runtime docs, $(DIRS))
55+
DIRS := $(filter-out tools docs, $(DIRS))
5656
OPTIONAL_DIRS :=
5757
endif
5858

5959
ifeq ($(MAKECMDGOALS),install-libs)
60-
DIRS := $(filter-out tools runtime docs, $(DIRS))
60+
DIRS := $(filter-out tools docs, $(DIRS))
6161
OPTIONAL_DIRS := $(filter bindings, $(OPTIONAL_DIRS))
6262
endif
6363

6464
ifeq ($(MAKECMDGOALS),tools-only)
65-
DIRS := $(filter-out runtime docs, $(DIRS))
65+
DIRS := $(filter-out docs, $(DIRS))
6666
OPTIONAL_DIRS :=
6767
endif
6868

@@ -72,7 +72,7 @@ ifeq ($(MAKECMDGOALS),install-clang)
7272
tools/clang/tools/c-index-test \
7373
tools/clang/include/clang-c \
7474
tools/clang/runtime tools/clang/docs \
75-
tools/lto runtime
75+
tools/lto
7676
OPTIONAL_DIRS :=
7777
NO_INSTALL = 1
7878
endif
@@ -84,7 +84,7 @@ ifeq ($(MAKECMDGOALS),clang-only)
8484
endif
8585

8686
ifeq ($(MAKECMDGOALS),unittests)
87-
DIRS := $(filter-out tools runtime docs, $(DIRS)) utils unittests
87+
DIRS := $(filter-out tools docs, $(DIRS)) utils unittests
8888
OPTIONAL_DIRS :=
8989
endif
9090

Makefile.rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ CPP.Defines :=
274274
ifeq ($(ENABLE_OPTIMIZED),1)
275275
BuildMode := Release
276276
# Don't use -fomit-frame-pointer on Darwin or FreeBSD.
277-
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin FreeBSD GNU/kFreeBSD))
277+
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin DragonFly FreeBSD GNU/kFreeBSD))
278278
OmitFramePointer := -fomit-frame-pointer
279279
endif
280280

@@ -1290,7 +1290,7 @@ LD.Flags += -Wl,-exported_symbol,_main
12901290
endif
12911291
endif
12921292

1293-
ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux NetBSD FreeBSD GNU/kFreeBSD GNU))
1293+
ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux NetBSD FreeBSD GNU/kFreeBSD GNU))
12941294
ifneq ($(ARCH), Mips)
12951295
LD.Flags += -Wl,--version-script=$(LLVM_SRC_ROOT)/autoconf/ExportMap.map
12961296
endif

autoconf/configure.ac

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ fi
6161

6262
dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
6363
dnl instead of the autoconf default (for example, '-g -O2' for CC=gcc).
64-
${CFLAGS=}
65-
${CXXFLAGS=}
64+
: ${CFLAGS=}
65+
: ${CXXFLAGS=}
6666

6767
dnl We need to check for the compiler up here to avoid anything else
6868
dnl starting with a different one.
@@ -1377,12 +1377,13 @@ else
13771377
fi
13781378

13791379
AC_MSG_CHECKING([for python >= 2.5])
1380-
ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[[0]]'`
1380+
ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
13811381
ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
13821382
ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
13831383
ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
1384-
if test "$ac_python_version_major" -eq "2" \
1385-
&& test "$ac_python_version_minor" -ge "5" ; then
1384+
if test "$ac_python_version_major" -gt "2" || \
1385+
(test "$ac_python_version_major" -eq "2" && \
1386+
test "$ac_python_version_minor" -ge "5") ; then
13861387
AC_MSG_RESULT([$PYTHON ($ac_python_version)])
13871388
else
13881389
AC_MSG_RESULT([not found])
@@ -1399,6 +1400,7 @@ AC_CHECK_LIB(m,sin)
13991400
if test "$llvm_cv_os_type" = "MingW" ; then
14001401
AC_CHECK_LIB(imagehlp, main)
14011402
AC_CHECK_LIB(psapi, main)
1403+
AC_CHECK_LIB(shell32, main)
14021404
fi
14031405

14041406
dnl dlopen() is required for plugin support.

autoconf/m4/ltdl.m4

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,3 +379,19 @@ if test x"$libltdl_cv_need_uscore" = xyes; then
379379
[Define if dlsym() requires a leading underscore in symbol names.])
380380
fi
381381
])# AC_LTDL_DLSYM_USCORE
382+
383+
# AC_LTDL_FUNC_ARGZ
384+
# -----------------
385+
AC_DEFUN([AC_LTDL_FUNC_ARGZ],
386+
[AC_CHECK_HEADERS([argz.h])
387+
388+
AC_CHECK_TYPES([error_t],
389+
[],
390+
[AC_DEFINE([error_t], [int],
391+
[Define to a type to use for `error_t' if it is not otherwise available.])],
392+
[#if HAVE_ARGZ_H
393+
# include <argz.h>
394+
#endif])
395+
396+
AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify])
397+
])# AC_LTDL_FUNC_ARGZ

bindings/ocaml/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
##===----------------------------------------------------------------------===##
99

1010
LEVEL := ../..
11-
DIRS = llvm bitreader bitwriter analysis target executionengine transforms
11+
DIRS = llvm bitreader bitwriter irreader analysis target executionengine \
12+
transforms linker
1213
ExtraMakefiles = $(PROJ_OBJ_DIR)/Makefile.ocaml
1314

1415
ocamldoc:

bindings/ocaml/Makefile.ocaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- tools/ml/Makefile -----------------------------------*- Makefile -*-===##
1+
##===- bindings/ocaml/Makefile.ocaml -----------------------*- Makefile -*-===##
22
#
33
# The LLVM Compiler Infrastructure
44
#
@@ -7,10 +7,10 @@
77
#
88
##===----------------------------------------------------------------------===##
99
#
10-
# An ocaml library is a unique project type in the context of LLVM, so rules are
10+
# An OCaml library is a unique project type in the context of LLVM, so rules are
1111
# here rather than in Makefile.rules.
1212
#
13-
# Reference materials on installing ocaml libraries:
13+
# Reference materials on installing OCaml libraries:
1414
#
1515
# https://fedoraproject.org/wiki/Packaging/OCaml
1616
# http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.txt
@@ -67,7 +67,7 @@ Compile.CMX := $(strip $(OCAMLOPT) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
6767
Archive.CMXA := $(strip $(OCAMLOPT) -a $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) -o)
6868

6969
ifdef OCAMLOPT
70-
Archive.EXE := $(strip $(OCAMLOPT) -cc $(CXX) $(OCAMLCFLAGS) $(UsedOcamLibs:%=%.cmxa) $(OCAMLDEBUGFLAG) -o)
70+
Archive.EXE := $(strip $(OCAMLOPT) -cc $(CXX) $(OCAMLCFLAGS) $(UsedOcamlLibs:%=%.cmxa) $(OCAMLDEBUGFLAG) -o)
7171
else
7272
Archive.EXE := $(strip $(OCAMLC) -cc $(CXX) $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG:%=%.cma) -o)
7373
endif

0 commit comments

Comments
 (0)