-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.yaml
92 lines (91 loc) · 3.11 KB
/
default.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Paths
xdsl-opt: xdsl-opt # from virtualenv
mlir-opt: /usr/bin/mlir-opt-16
mlir-translate: /usr/bin/mlir-translate-16
cc: /opt/snitch-llvm/bin/riscv32-unknown-elf-clang
spike: /opt/snitch-spike/bin/spike-dasm
vltsim: /opt/snitch-rtl/bin/snitch_cluster.vlt
gentrace: /opt/snitch_cluster/util/trace/gen_trace.py
xdsl_commit: /src/xdsl_commit.txt
# Flags
asflags:
- -menable-experimental-extensions
- -mcpu=snitch
- -mabi=ilp32d
- -mcmodel=medany
- -ftls-model=local-exec
- -ffast-math
- -fno-builtin-printf
- -fno-common
- -O3
- -D__DEFINED_uint64_t
- -I/opt/snitch_cluster/target/snitch_cluster/sw/runtime/rtl/src
- -I/opt/snitch_cluster/target/snitch_cluster/sw/runtime/common
- -I/opt/snitch_cluster/sw/snRuntime/api
- -I/opt/snitch_cluster/sw/snRuntime/src
- -I/opt/snitch_cluster/sw/snRuntime/src/omp/
- -I/opt/snitch_cluster/sw/snRuntime/api/omp/
- -I/opt/snitch_cluster/sw/math/arch/riscv64/bits/
- -I/opt/snitch_cluster/sw/math/arch/generic
- -I/opt/snitch_cluster/sw/math/src/include
- -I/opt/snitch_cluster/sw/math/src/internal
- -I/opt/snitch_cluster/sw/math/include/bits
- -I/opt/snitch_cluster/sw/math/include
cflags:
- -Wno-unused-command-line-argument
- -menable-experimental-extensions
- -mcpu=snitch
- -mabi=ilp32d
- -mcmodel=medany
- -ftls-model=local-exec
- -ffast-math
- -fno-builtin-printf
- -fno-common
- -O3
- -D__DEFINED_uint64_t
- -I/opt/snitch_cluster/target/snitch_cluster/sw/runtime/rtl/src
- -I/opt/snitch_cluster/target/snitch_cluster/sw/runtime/common
- -I/opt/snitch_cluster/sw/snRuntime/api
- -I/opt/snitch_cluster/sw/snRuntime/src
- -I/opt/snitch_cluster/sw/snRuntime/src/omp/
- -I/opt/snitch_cluster/sw/snRuntime/api/omp/
- -I/opt/snitch_cluster/sw/math/arch/riscv64/bits/
- -I/opt/snitch_cluster/sw/math/arch/generic
- -I/opt/snitch_cluster/sw/math/src/include
- -I/opt/snitch_cluster/sw/math/src/internal
- -I/opt/snitch_cluster/sw/math/include/bits
- -I/opt/snitch_cluster/sw/math/include
ldflags:
- -fuse-ld=/opt/snitch-llvm/bin/ld.lld
- -nostartfiles
- -nostdlib
- -lclang_rt.builtins-riscv32
- -lc
- -lsnRuntime
- -L/opt/snitch-llvm/lib/clang/12.0.1/lib/
- -T/opt/snitch_cluster/sw/snRuntime/base.ld
- -L/opt/snitch_cluster/target/snitch_cluster/sw/runtime/rtl
- -L/opt/snitch_cluster/target/snitch_cluster/sw/runtime/rtl/build
xdsl-passes:
- test-lower-linalg-to-snitch
mlir-opt-flags-linalg:
- -opaque-pointers=0
- --linalg-generalize-named-ops
- --eliminate-empty-tensors
- -empty-tensor-to-alloc-tensor
- --one-shot-bufferize='bufferize-function-boundaries function-boundary-type-conversion=identity-layout-map'
- --canonicalize
mlir-opt-flags-scf:
- --convert-linalg-to-loops
- --lower-affine
- --canonicalize
- --convert-scf-to-cf
- --canonicalize
- --cse
- --convert-math-to-llvm
- --convert-memref-to-llvm='use-generic-functions index-bitwidth=32'
- --convert-func-to-llvm='use-bare-ptr-memref-call-conv index-bitwidth=32'
- --convert-index-to-llvm=index-bitwidth=32
- --convert-cf-to-llvm=index-bitwidth=32
- --convert-arith-to-llvm=index-bitwidth=32
- --reconcile-unrealized-casts