-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregen.sh
More file actions
28 lines (24 loc) · 895 Bytes
/
regen.sh
File metadata and controls
28 lines (24 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -ex
git fetch
git co origin/main
if [ ! -e llvm-project ]; then
git clone https://github.com/llvm/llvm-project
mkdir llvm-project/build
( cd llvm-project/build && cmake ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -GNinja )
else
( cd llvm-project && git pull --ff-only )
fi
HASH=`cd llvm-project && git rev-parse HEAD`
( cd llvm-project/build && ninja )
PATH=$PWD/llvm-project/build/bin:$PATH python generate.py
PATH=$PWD/llvm-project/build/bin:$PATH python generate.py -mattr=fullfp16
PATH=$PWD/llvm-project/build/bin:$PATH python generate.py -mattr=sve2
PATH=$PWD/llvm-project/build/bin:$PATH python generate.py -mattr=sve2 -vscale=2
PATH=$PWD/llvm-project/build/bin:$PATH python generate.py -mattr=all
git --no-pager diff
if ! git diff-index --quiet HEAD --; then
git add -u
git commit -m "Regen $HASH `date`"
git push origin HEAD:main
fi