Skip to content

Commit

Permalink
Merge branch 'master' into replace_image_with_tools_image
Browse files Browse the repository at this point in the history
  • Loading branch information
abadams committed Sep 6, 2016
2 parents 0959629 + 8924262 commit 0967e79
Show file tree
Hide file tree
Showing 25 changed files with 110 additions and 3,474 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ env:
#
# Test a mix of llvm versions, a mix of build systems, and a mix of shared vs static library
# Don't build as a static library with cmake. It risks exceeding the travis memory limit.
- LLVM_VERSION=3.6.2 BUILD_SYSTEM=MAKE CXX_=g++-4.8 CC_=gcc-4.8
- LLVM_VERSION=3.7.1 BUILD_SYSTEM=MAKE CXX_=g++-4.8 CC_=gcc-4.8
- LLVM_VERSION=3.8.0 BUILD_SYSTEM=MAKE CXX_=g++-4.8 CC_=gcc-4.8
- LLVM_VERSION=3.8.1 BUILD_SYSTEM=MAKE CXX_=g++-4.8 CC_=gcc-4.8
- LLVM_VERSION=3.7.1 BUILD_SYSTEM=MAKE CXX_=g++-4.8 CC_=gcc-4.8 HALIDE_SHARED_LIBRARY=1
- LLVM_VERSION=3.8.0 BUILD_SYSTEM=CMAKE CXX_=g++-4.8 CC_=gcc-4.8 HALIDE_SHARED_LIBRARY=1
- LLVM_VERSION=3.8.1 BUILD_SYSTEM=CMAKE CXX_=g++-4.8 CC_=gcc-4.8 HALIDE_SHARED_LIBRARY=1
cache: apt
# Note the commands below are written assuming Ubuntu 12.04LTS
before_install:
Expand Down
23 changes: 4 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ CXX_FLAGS += $(EXCEPTIONS_CXX_FLAGS)
# to propagate exceptions and causes a test failure.
CXX_FLAGS += -funwind-tables

ifeq ($(LLVM_VERSION_TIMES_10), 35)
LLVM_OLD_JIT_COMPONENT = jit
endif

print-%:
@echo '$*=$($*)'

Expand Down Expand Up @@ -390,16 +386,10 @@ SOURCE_FILES = \
VectorizeLoops.cpp \
WrapCalls.cpp

ifeq ($(LLVM_VERSION_TIMES_10),35)
BITWRITER_VERSION=.35
else
BITWRITER_VERSION=
endif

BITWRITER_SOURCE_FILES = \
BitWriter_3_2$(BITWRITER_VERSION)/BitcodeWriter.cpp \
BitWriter_3_2$(BITWRITER_VERSION)/BitcodeWriterPass.cpp \
BitWriter_3_2$(BITWRITER_VERSION)/ValueEnumerator.cpp
BitWriter_3_2/BitcodeWriter.cpp \
BitWriter_3_2/BitcodeWriterPass.cpp \
BitWriter_3_2/ValueEnumerator.cpp

# The externally-visible header files that go into making Halide.h. Don't include anything here that includes llvm headers.
HEADER_FILES = \
Expand Down Expand Up @@ -706,14 +696,9 @@ $(BIN_DIR)/build_halide_h: $(ROOT_DIR)/tools/build_halide_h.cpp
-include $(OBJECTS:.o=.d)
-include $(INITIAL_MODULES:.o=.d)

ifeq ($(LLVM_VERSION_TIMES_10),35)
RUNTIME_TRIPLE_32 = "i386-unknown-unknown-unknown"
RUNTIME_TRIPLE_64 = "x86_64-unknown-unknown-unknown"
else
# Compile generic 32- or 64-bit code
RUNTIME_TRIPLE_32 = "le32-unknown-nacl-unknown"
RUNTIME_TRIPLE_64 = "le64-unknown-unknown-unknown"
endif

# win32 is tied to x86 due to the use of the __stdcall calling convention
RUNTIME_TRIPLE_WIN_32 = "i386-unknown-unknown-unknown"
Expand Down Expand Up @@ -1222,7 +1207,7 @@ $(BUILD_DIR)/clang_ok:
@exit 1
endif

ifneq (,$(findstring $(LLVM_VERSION_TIMES_10), 35 36 37 38 39 40))
ifneq (,$(findstring $(LLVM_VERSION_TIMES_10), 37 38 39 40 41 42))
LLVM_OK=yes
endif

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,9 @@ code on the simulator from the Hexagon tools.

To build and run the HelloHexagon example in Halide/apps/HelloHexagon on the simulator:

cd apps/HelloHexagon
export HL_HEXAGON_TOOLS=$SDK_LOC/Hexagon_Tools/8.0/Tools/
LD_LIBRARY_PATH=/.../Halide/src/runtime/hexagon_remote/bin/host/:$HL_HEXAGON_TOOLS/lib/iss/:. make run-host
LD_LIBRARY_PATH=../../src/runtime/hexagon_remote/bin/host/:$HL_HEXAGON_TOOLS/lib/iss/:. make run-host

#### To build and run the HelloHexagon example in Halide/apps/HelloHexagon on Android:

Expand Down
54 changes: 0 additions & 54 deletions src/BitWriter_3_2.35/Android.mk

This file was deleted.

Loading

0 comments on commit 0967e79

Please sign in to comment.