summarylogtreecommitdiffstats
path: root/graphite.sh.in
diff options
context:
space:
mode:
authorQue Quotion2019-09-26 09:38:40 +0900
committerQue Quotion2019-09-26 09:38:40 +0900
commit7b140304d73b84e71e3cd28250f985bb35ca5685 (patch)
tree1bca0d5923e41a4dcdc50fb0dc38dcab64c4b480 /graphite.sh.in
parent07e32248a7aa0fdfb7b35f4cd9d7315c34e3687a (diff)
downloadaur-7b140304d73b84e71e3cd28250f985bb35ca5685.tar.gz
Separate options for clang; reduce overlap in graphite and rice; intensify graphite flags; output status messages from pgo
Diffstat (limited to 'graphite.sh.in')
-rw-r--r--graphite.sh.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/graphite.sh.in b/graphite.sh.in
index ba0d6bdc0968..37b729f625df 100644
--- a/graphite.sh.in
+++ b/graphite.sh.in
@@ -1,6 +1,6 @@
#!/usr/bin/bash
#
-# graphite.sh - Compile with Graphite polyhedral modeling optimization
+# graphite.sh - Compile with polyhedral model optimization
#
[[ -n "$LIBMAKEPKG_BUILDENV_GRAPHITE_SH" ]] && return
@@ -10,12 +10,15 @@ LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
source "$LIBRARY/util/option.sh"
-build_options+=('graphite')
+build_options+=('graphite' 'polly')
buildenv_functions+=('buildenv_graphite')
buildenv_graphite() {
- if check_buildoption "graphite" "y"; then
- graphiteflags=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize"
+ if check_buildoption "graphite" "y" || check_buildoption "polly" "y"; then
+ graphiteflags=" -lgomp -mllvm -polly -mllvm -polly-num-threads=$(getconf _NPROCESSORS_ONLN) -mllvm -polly-parallel"
+ check_buildoption "graphite" "y" && \
+ graphiteflags=" -fgraphite-identity -floop-interchange -floop-nest-optimize -floop-parallelize-all -ftree-loop-distribution -ftree-parallelize-loops=$(getconf _NPROCESSORS_ONLN) -ftree-vectorize"
+
CFLAGS+="$graphiteflags"
CXXFLAGS+="$graphiteflags"
fi