https://github.com/halide/Halide
Revision 0218c9e306105c8f5778376a757b5a0441022ecd authored by Andrew Adams on 23 June 2023, 15:21:38 UTC, committed by GitHub on 23 June 2023, 15:21:38 UTC
* Initial version of a compositing demo app

* Improve schedule; add GPU version

* Better mux codegen

* Consider all definition exprs in mullapudi autoscheduler

* Add Tuple mux to IROperator

* clang-format, better comments

* Remove pointless blank line

* Add some fixed-point intrinsics to RegionCosts.cpp to suppress warnings

* Add perf numbers

* Hopefully fix cmake build

* clang-format

* clang-format

* Fix muxing FuncRefs

* More comments

* Update process.cpp

* Include cmath to hopefully get M_PI

* Revert inclusion of cmath

---------

Co-authored-by: Steven Johnson <srj@google.com>
1 parent 1e963ff
Raw File
Tip revision: 0218c9e306105c8f5778376a757b5a0441022ecd authored by Andrew Adams on 23 June 2023, 15:21:38 UTC
Add a compositing example app (#7646)
Tip revision: 0218c9e
run-clang-format.sh
#!/bin/bash

set -e

ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# We are currently standardized on using LLVM/Clang14 for this script.
# Note that this is totally independent of the version of LLVM that you
# are using to build Halide itself. If you don't have LLVM14 installed,
# you can usually install what you need easily via:
#
# sudo apt-get install llvm-14 clang-14 libclang-14-dev clang-tidy-14
# export CLANG_FORMAT_LLVM_INSTALL_DIR=/usr/lib/llvm-14

[ -z "$CLANG_FORMAT_LLVM_INSTALL_DIR" ] && echo "CLANG_FORMAT_LLVM_INSTALL_DIR must point to an LLVM installation dir for this script." && exit
echo CLANG_FORMAT_LLVM_INSTALL_DIR = ${CLANG_FORMAT_LLVM_INSTALL_DIR}

VERSION=$(${CLANG_FORMAT_LLVM_INSTALL_DIR}/bin/clang-format --version)
if [[ ${VERSION} =~ .*version\ 14.* ]]
then
    echo "clang-format version 14 found."
else
    echo "CLANG_FORMAT_LLVM_INSTALL_DIR must point to an LLVM 14 install!"
    exit 1
fi

# Note that we specifically exclude files starting with . in order
# to avoid finding emacs backup files
find "${ROOT_DIR}/apps" \
     "${ROOT_DIR}/src" \
     "${ROOT_DIR}/tools" \
     "${ROOT_DIR}/test" \
     "${ROOT_DIR}/util" \
     "${ROOT_DIR}/python_bindings" \
     \( -name "*.cpp" -o -name "*.h" -o -name "*.c" \) -and -not -wholename "*/.*" | \
     xargs ${CLANG_FORMAT_LLVM_INSTALL_DIR}/bin/clang-format -i -style=file
back to top