diff options
author | Andres Erbsen <andreser@mit.edu> | 2019-01-08 04:21:38 -0500 |
---|---|---|
committer | Andres Erbsen <andreser@mit.edu> | 2019-01-09 22:49:02 -0500 |
commit | 3ca227f1137e6a3b65bc33f5689e1c230d591595 (patch) | |
tree | e1e5a2dd2a2f34f239d3276227ddbdc69eeeb667 /extract-function-header.sh | |
parent | 3ec21c64b3682465ca8e159a187689b207c71de4 (diff) |
remove old pipeline
Diffstat (limited to 'extract-function-header.sh')
-rwxr-xr-x | extract-function-header.sh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/extract-function-header.sh b/extract-function-header.sh deleted file mode 100755 index 36676db06..000000000 --- a/extract-function-header.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -set -eu - -case "$#" in - 0) - funcname=f - ;; - 1) - funcname="$1" - ;; - *) - exit 111 - ;; -esac - -cat <<"EOF" -#include <stdint.h> - -#undef force_inline -#define force_inline __attribute__((always_inline)) - -EOF - -if [ -z "${BITWIDTH}" ]; then - BITWIDTH=64 -fi - -while IFS= read -r line; do - case "$line" in - *"λ '"*) - echo -n "void force_inline $funcname(" - echo -n "uint${BITWIDTH}_t* out" - echo "$line" | grep -owP -- '\w+\d+' | \ - while IFS= read -r arg; do - echo -n ", uint${BITWIDTH}_t $arg" - done - echo ');' - break - ;; - esac -done |