aboutsummaryrefslogtreecommitdiffstats
path: root/aarch64/OpWeights.ml
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-09-16 10:17:27 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-09-16 10:17:27 +0200
commit932f7f853fdad81c2bdc9db42ed87d106db5762f (patch)
tree057b0f63f32419bcb92cb7001513bd21b16d7081 /aarch64/OpWeights.ml
parent93f9aa39b2885f98bf2be89583102d5c7f4c6f22 (diff)
downloadcompcert-kvx-932f7f853fdad81c2bdc9db42ed87d106db5762f.tar.gz
compcert-kvx-932f7f853fdad81c2bdc9db42ed87d106db5762f.zip
first opweights, bogus weights
Diffstat (limited to 'aarch64/OpWeights.ml')
-rw-r--r--aarch64/OpWeights.ml19
1 files changed, 19 insertions, 0 deletions
diff --git a/aarch64/OpWeights.ml b/aarch64/OpWeights.ml
new file mode 100644
index 00000000..3662ef1c
--- /dev/null
+++ b/aarch64/OpWeights.ml
@@ -0,0 +1,19 @@
+open Op;;
+let resource_bounds = [| 1 |];;
+
+
+let latency_of_op (op : operation) (nargs : int) = 1;;
+
+let resources_of_op (op : operation) (nargs : int) = [| 1 |];;
+
+let resources_of_cond (cond : condition) (nargs : int) = [| 1 |];;
+
+let latency_of_load trap chunk (addr : addressing) (nargs : int) = 3;;
+let latency_of_call _ _ = 6;;
+
+let resources_of_load trap chunk addressing nargs = [| 1 |];;
+
+let resources_of_store chunk addressing nargs = [| 1 |];;
+
+let resources_of_call _ _ = resource_bounds;;
+let resources_of_builtin _ = resource_bounds;;