From 33e95db0accb512f269b5d1749d6700a56cef357 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Fri, 11 Dec 2020 19:09:38 +0100 Subject: fix installation problems --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4693ed6..88cc9fd4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -254,7 +254,7 @@ pages: # TODO: change to "deploy" when "build" succeeds (or integrate with "buil - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install sshpass openssh-client libzip4 lttng-tools liblttng-ctl-dev liblttng-ust-dev babeltrace - ./.download_from_Kalray.sh - - rm -f download/*dkms*.deb download/*eclipse*.deb download/*llvm*.deb download/*board-mgmt* download/*oce-host* download/*pocl* + - rm -f download/*dkms*.deb download/*eclipse*.deb download/*llvm*.deb download/*board-mgmt* download/*oce-host* download/*pocl* download/*flash-util* download/*barebox* - sudo dpkg -i download/*.deb - rm -rf download - eval `opam config env` -- cgit From 5b5682a4d4ebb102002616015adab46154597b10 Mon Sep 17 00:00:00 2001 From: Sylvain Boulmé Date: Wed, 16 Dec 2020 15:52:48 +0100 Subject: upgrade kvx backend to coq.8.12.2 --- .gitignore | 1 + configure | 2 +- kvx/Asmblockdeps.v | 21 +++++++++++++-------- kvx/abstractbb/AbstractBasicBlocksDef.v | 15 +++++++++------ kvx/abstractbb/Parallelizability.v | 8 ++++---- kvx/lib/ForwardSimulationBlock.v | 26 +++++++++++++------------- kvx/lib/Machblockgen.v | 4 ++-- 7 files changed, 43 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index 771654d7..1d6cad94 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ # Emacs saves *~ # Executables and configuration +/tools/compiler_expand /ccomp /ccomp.byte /ccomp.prof diff --git a/configure b/configure index 415dbb03..e63ff928 100755 --- a/configure +++ b/configure @@ -565,7 +565,7 @@ missingtools=false echo "Testing Coq... " | tr -d '\n' coq_ver=$(${COQBIN}coqc -v 2>/dev/null | sed -n -e 's/The Coq Proof Assistant, version \([^ ]*\).*$/\1/p') case "$coq_ver" in - 8.8.0|8.8.1|8.8.2|8.9.0|8.9.1|8.10.0|8.10.1|8.10.2|8.11.0|8.11.1|8.11.2|8.12.0|8.12.1) + 8.8.0|8.8.1|8.8.2|8.9.0|8.9.1|8.10.0|8.10.1|8.10.2|8.11.0|8.11.1|8.11.2|8.12.0|8.12.1|8.12.2) echo "version $coq_ver -- good!";; ?*) echo "version $coq_ver -- UNSUPPORTED" diff --git a/kvx/Asmblockdeps.v b/kvx/Asmblockdeps.v index 3d981100..67430b54 100644 --- a/kvx/Asmblockdeps.v +++ b/kvx/Asmblockdeps.v @@ -40,6 +40,10 @@ Require Import Chunks. Require Import Lia. + +Import ListNotations. +Local Open Scope list_scope. + Open Scope impure. (** Definition of [L] *) @@ -706,19 +710,20 @@ Proof. destruct r; destruct r'. all: try discriminate; try contradiction. - intros. apply not_eq_add. apply ireg_to_pos_discr. congruence. - - intros. unfold ppos. cutrewrite (3 + ireg_to_pos g = (1 + ireg_to_pos g) + 2). apply Pos.add_no_neutral. - apply eq_sym. rewrite Pos.add_comm. rewrite Pos.add_assoc. reflexivity. + - intros. unfold ppos. replace (3 + ireg_to_pos g) with ((1 + ireg_to_pos g) + 2). + apply Pos.add_no_neutral. + rewrite Pos.add_comm, Pos.add_assoc. reflexivity. - intros. unfold ppos. rewrite Pos.add_comm. apply Pos.add_no_neutral. - intros. unfold ppos. apply not_eq_sym. - cutrewrite (3 + ireg_to_pos g = (1 + ireg_to_pos g) + 2). apply Pos.add_no_neutral. - apply eq_sym. rewrite Pos.add_comm. rewrite Pos.add_assoc. reflexivity. + replace (3 + ireg_to_pos g) with ((1 + ireg_to_pos g) + 2). apply Pos.add_no_neutral. + rewrite Pos.add_comm, Pos.add_assoc. reflexivity. - intros. unfold ppos. apply not_eq_sym. rewrite Pos.add_comm. apply Pos.add_no_neutral. Qed. Lemma ppos_pmem_discr: forall r, pmem <> ppos r. Proof. intros. destruct r. - - unfold ppos. unfold pmem. apply not_eq_sym. rewrite Pos.add_comm. cutrewrite (3 = 2 + 1). rewrite Pos.add_assoc. apply Pos.add_no_neutral. + - unfold ppos. unfold pmem. apply not_eq_sym. rewrite Pos.add_comm. replace 3 with (2 + 1). rewrite Pos.add_assoc. apply Pos.add_no_neutral. reflexivity. - unfold ppos. unfold pmem. discriminate. - unfold ppos. unfold pmem. discriminate. @@ -1250,7 +1255,7 @@ Theorem bisimu_par_exit ex sz ge fn rsr rsw mr mw sr sw: Proof. intros; unfold estep. exploit (bisimu_par_control ex sz rsw#PC ge fn rsr rsw mr mw sr sw); eauto. - cutrewrite (rsw # PC <- (rsw PC) = rsw); auto. + replace (rsw # PC <- (rsw PC)) with rsw; auto. apply extensionality. intros; destruct x; simpl; auto. Qed. @@ -1461,8 +1466,8 @@ Proof. destruct H2 as (m2' & H2 & H4). discriminate. rewrite H2 in H3. destruct (exec_bblock ge fn p2 rs m); simpl in H3. * destruct H3 as (s' & H3 & H5 & H6). inv H3. inv MS'. - cutrewrite (rs0=rs1). - - cutrewrite (m0=m1); auto. congruence. + replace rs0 with rs1. + - replace m0 with m1; auto. congruence. - apply functional_extensionality. intros r. generalize (H0 r). intros Hr. congruence. * discriminate. diff --git a/kvx/abstractbb/AbstractBasicBlocksDef.v b/kvx/abstractbb/AbstractBasicBlocksDef.v index 6960f363..34d72de1 100644 --- a/kvx/abstractbb/AbstractBasicBlocksDef.v +++ b/kvx/abstractbb/AbstractBasicBlocksDef.v @@ -273,23 +273,26 @@ with list_term := Scheme term_mut := Induction for term Sort Prop with list_term_mut := Induction for list_term Sort Prop. +Declare Scope pattern_scope. +Declare Scope term_scope. Bind Scope pattern_scope with term. Delimit Scope term_scope with term. Delimit Scope pattern_scope with pattern. +Local Open Scope pattern_scope. + Notation "[ ]" := (LTnil _) (format "[ ]"): pattern_scope. -Notation "[ x ]" := (LTcons x [] _): pattern_scope. +Notation "[ x ]" := (LTcons x [ ] _): pattern_scope. Notation "[ x ; y ; .. ; z ]" := (LTcons x (LTcons y .. (LTcons z (LTnil _) _) .. _) _): pattern_scope. Notation "o @ l" := (App o l _) (at level 50, no associativity): pattern_scope. Import HConsingDefs. Notation "[ ]" := (LTnil unknown_hid) (format "[ ]"): term_scope. -Notation "[ x ]" := (LTcons x [] unknown_hid): term_scope. +Notation "[ x ]" := (LTcons x []%term unknown_hid): term_scope. Notation "[ x ; y ; .. ; z ]" := (LTcons x (LTcons y .. (LTcons z (LTnil unknown_hid) unknown_hid) .. unknown_hid) unknown_hid): term_scope. Notation "o @ l" := (App o l unknown_hid) (at level 50, no associativity): term_scope. -Local Open Scope pattern_scope. Fixpoint term_eval (ge: genv) (t: term) (m: mem): option value := match t with @@ -370,7 +373,7 @@ Qed. Hint Resolve intro_fail_correct: wlp. (** The default reduction of a term to a pseudo-term *) -Definition identity_fail (t: term):= intro_fail [t] t. +Definition identity_fail (t: term):= intro_fail (t::nil) t. Lemma identity_fail_correct (t: term): match_pt t (identity_fail t). Proof. @@ -382,8 +385,8 @@ Hint Resolve identity_fail_correct: wlp. (** The reduction for constant term *) Definition nofail (is_constant: op -> bool) (t: term):= match t with - | Input x _ => intro_fail ([])%list t - | o @ [] => if is_constant o then (intro_fail ([])%list t) else (identity_fail t) + | Input x _ => intro_fail nil t + | o @ [] => if is_constant o then (intro_fail nil t) else (identity_fail t) | _ => identity_fail t end. diff --git a/kvx/abstractbb/Parallelizability.v b/kvx/abstractbb/Parallelizability.v index e5d21434..afa4b9fd 100644 --- a/kvx/abstractbb/Parallelizability.v +++ b/kvx/abstractbb/Parallelizability.v @@ -299,7 +299,7 @@ Proof. induction i as [|[y e] i']; cbn. - intros m tmp H x H0; inversion_clear H; auto. - intros m tmp H x (H1 & H2); destruct (exp_eval ge e tmp old); cbn; try congruence. - cutrewrite (m x = assign m y v x); eauto. + replace (m x) with (assign m y v x); eauto. rewrite assign_diff; auto. Qed. @@ -514,13 +514,13 @@ Proof. induction i as [|[x e] i']; cbn; auto. intros m tmp1 tmp2; rewrite disjoint_cons_l, disjoint_app_l. intros (H1 & H2 & H3) H6 H7. - cutrewrite (exp_eval ge e tmp1 old1 = exp_eval ge e tmp2 old2). + replace (exp_eval ge e tmp1 old1) with (exp_eval ge e tmp2 old2). - destruct (exp_eval ge e tmp2 old2); auto. eapply IHi'; eauto. cbn; intros x0 H0; unfold assign. destruct (R.eq_dec x x0); cbn; auto. - unfold disjoint in H2; apply exp_frame_correct. - intros;apply H6; auto. - intros;apply H7; auto. + intros;rewrite H6; auto. + intros;rewrite H7; auto. Qed. (** * Parallelizability *) diff --git a/kvx/lib/ForwardSimulationBlock.v b/kvx/lib/ForwardSimulationBlock.v index 61466dad..cc6ecdd8 100644 --- a/kvx/lib/ForwardSimulationBlock.v +++ b/kvx/lib/ForwardSimulationBlock.v @@ -25,7 +25,7 @@ Require Import Coqlib. Require Import Events. Require Import Globalenvs. Require Import Smallstep. - +Require Import Lia. Local Open Scope nat_scope. @@ -43,8 +43,8 @@ Lemma starN_split n s t s': exists (t1 t2:trace) s0, starN (step L) (globalenv L) m s t1 s0 /\ starN (step L) (globalenv L) k s0 t2 s' /\ t=t1**t2. Proof. induction 1; cbn. - + intros m k H; assert (X: m=0); try omega. - assert (X0: k=0); try omega. + + intros m k H; assert (X: m=0); try lia. + assert (X0: k=0); try lia. subst; repeat (eapply ex_intro); intuition eauto. + intros m; destruct m as [| m']; cbn. - intros k H2; subst; repeat (eapply ex_intro); intuition eauto. @@ -119,10 +119,10 @@ Proof. intros t [H1 H2] H3 H4. destruct (simu_mid_block _ _ _ H3 H4) as [H5 H6]; subst. constructor 1. - + omega. - + cutrewrite (dist_end_block head - dist_end_block next = S (dist_end_block head - dist_end_block previous)). + + lia. + + replace (dist_end_block head - dist_end_block next) with (S (dist_end_block head - dist_end_block previous)). - eapply starN_tailstep; eauto. - - omega. + - lia. Qed. Lemma follows_in_block_init (head current: state L1): @@ -131,10 +131,10 @@ Proof. intros t H3 H4. destruct (simu_mid_block _ _ _ H3 H4) as [H5 H6]; subst. constructor 1. - + omega. - + cutrewrite (dist_end_block head - dist_end_block current = 1). + + lia. + + replace (dist_end_block head - dist_end_block current) with 1. - eapply starN_tailstep; eauto. - - omega. + - lia. Qed. @@ -156,10 +156,10 @@ Proof. destruct s as [rs ms Hs]. cbn. destruct ms as [ms|]; unfold head; cbn; auto. constructor 1. - omega. - cutrewrite ((dist_end_block rs - dist_end_block rs)%nat=O). + lia. + replace (dist_end_block rs - dist_end_block rs)%nat with O. + apply starN_refl; auto. - + omega. + + lia. Qed. Inductive is_well_memorized (s s': memostate): Prop := @@ -259,7 +259,7 @@ Proof. constructor 1. destruct (simu_end_block (head s1) t (real s1') s2) as (s2' & H3 & H4); auto. * destruct (head_followed s1) as [H4 H3]. - cutrewrite (dist_end_block (head s1) - dist_end_block (real s1) = dist_end_block (head s1)) in H3; try omega. + replace (dist_end_block (head s1) - dist_end_block (real s1)) with (dist_end_block (head s1)) in H3; try lia. eapply starN_tailstep; eauto. * unfold head; rewrite H2; cbn. intuition eauto. Qed. diff --git a/kvx/lib/Machblockgen.v b/kvx/lib/Machblockgen.v index 3d5d7b2c..5a2f2a61 100644 --- a/kvx/lib/Machblockgen.v +++ b/kvx/lib/Machblockgen.v @@ -155,11 +155,11 @@ Proof. + intros; eapply Tr_add_label; eauto. destruct i; cbn in * |- *; congruence. + intros. remember (header bh0) as hbh0. destruct hbh0 as [|b]. * eapply Tr_add_basic; eauto. - * cutrewrite (add_basic bi empty_bblock = add_to_new_bblock (MB_basic bi)); auto. + * replace (add_basic bi empty_bblock) with (add_to_new_bblock (MB_basic bi)); auto. rewrite Heqti; eapply Tr_end_block; eauto. rewrite <- Heqti. eapply End_basic. congruence. + intros. - cutrewrite (cfi_bblock cfi = add_to_new_bblock (MB_cfi cfi)); auto. + replace (cfi_bblock cfi) with (add_to_new_bblock (MB_cfi cfi)); auto. rewrite Heqti. eapply Tr_end_block; eauto. rewrite <- Heqti. eapply End_cfi. congruence. Qed. -- cgit From aff083950e663c3f23d63de9c4e2129bb03bacad Mon Sep 17 00:00:00 2001 From: Sylvain Boulmé Date: Wed, 16 Dec 2020 16:07:03 +0100 Subject: update the doc for CompCert 3.8 --- doc/index-kvx.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/doc/index-kvx.html b/doc/index-kvx.html index b8850727..4e2e0b47 100644 --- a/doc/index-kvx.html +++ b/doc/index-kvx.html @@ -22,15 +22,17 @@ a:active {color : Red; text-decoration : underline; } -

The CompCert verified compiler

+ +

The CompCert verified compiler

Commented Coq development

-

Version 3.7, 2020-03-31

+

Version 3.8, 2020-11-16

+

PATCHED for the Kalray MPPA-KVX VLIW CORE

Introduction

-

This web page is a patched version of the table of contents of the official CompCert documentation, - as given on the CompCert Web site. +

This web page is a patched version of the table of contents of the official CompCert sources documentation, + as given on the CompCert Web site. The unmodified parts of this table appear in gray.

@@ -40,7 +42,8 @@ a:active {color : Red; text-decoration : underline; } See also the README.md of our GitLab public repository.

-

Table of contents

+ +

Table of contents

General-purpose libraries, data structures and algorithms

@@ -85,6 +88,8 @@ See also: Memdata (in-memory rep
  • Determinism: determinism properties of small-step semantics.
  • Op: operators, addressing modes and their semantics. +
  • Builtins: semantics of built-in functions.
    +See also: Builtins0 (target-independent part), Builtins1 (target-dependent part).
  • Unityping: a solver for atomic unification constraints. @@ -172,7 +177,8 @@ This IR is generic over the processor, even if currently, only used for KVX. - Recognition of operators
    and addressing modes + Recognition of operators
    and addressing modes;
    + if-conversion Cminor to CminorSel Selection
    SelectOp
    -- cgit From 695c9ee5c2570f61f68e94d0595e40cb082cc6a3 Mon Sep 17 00:00:00 2001 From: Sylvain Boulmé Date: Wed, 16 Dec 2020 17:39:41 +0100 Subject: add superblock-scheduling passes in the coqhtml --- doc/index-kvx.html | 87 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 62 insertions(+), 25 deletions(-) diff --git a/doc/index-kvx.html b/doc/index-kvx.html index 4e2e0b47..39fdf799 100644 --- a/doc/index-kvx.html +++ b/doc/index-kvx.html @@ -128,6 +128,8 @@ view of the activation record.

    Languages introduced for KVX core

      +
    • RTLpath: extends RTL with annotations for delimitating superblocks (with possible liveness information). + This IR is generic over the processor, and used for prepass scheduling.
    • Machblock: a variant of Mach, with a syntax for basic-blocks, and a block-step semantics (execute one basic-block in one step). This IR is generic over the processor, even if currently, only used for KVX.
    • Asmvliw: abstract syntax and semantics for KVX VLIW assembly: atomic instructions are grouped by "bundles". These bundles are executed sequentially, but execution is parallel within bundles. @@ -136,14 +138,14 @@ This IR is generic over the processor, even if currently, only used for KVX.
    • Asm: a variant of Asmvliw with a flat syntax for bundles, instead of a structured one (bundle termination is encoded as a pseudo-instruction). This IR is mainly a wrapper of Asmvliw for a smooth integration in CompCert (and an easier pretty-printing of the abstract syntax).
    -

    Compiler passes

    +

    Compiler passes

    - - - - + + + + @@ -221,16 +223,6 @@ This IR is generic over the processor, even if currently, only used for KVX. - - - - - - - - @@ -240,13 +232,20 @@ This IR is generic over the processor, even if currently, only used for KVX. CombineOpproof + + + + + + - @@ -254,6 +253,43 @@ This IR is generic over the processor, even if currently, only used for KVX. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -298,11 +334,11 @@ This IR is generic over the processor, even if currently, only used for KVX. -
    PassSource & targetCompiler codeCorrectness proofPassSource & targetCompiler codeCorrectness proof
    Renumber Renumberproof
    Constant propagationRTL to RTLConstprop
    - ConstpropOp
    Constpropproof
    - ConstproppOproof
    Common subexpression elimination RTL to RTL
    Constant propagationRTL to RTLConstprop
    + ConstpropOp
    Constpropproof
    + ConstproppOproof
    Redundancy elimination RTL to RTL Deadcode Deadcodeproof
    Removal of unused static globals RTL to RTLUnusedglobproof
    Passes introduced for superblock prepass scheduling
    Code duplications (trace selection, loop unrollings, etc) + RTL to RTLDuplicate (generic checker)Duplicateproof (generic proof)
    + Duplicatepasses (several passes from several oracles)
    Superblock selection (with Liveness information)RTL to RTLPathRTLpathLivegenRTLpathLivegenproof
    Superblock prepass schedulingRTLPath to RTLPathRTLpathSchedulerRTLpathSchedulerproof
    + with RTLpathSE_theory (the theory of symbolic execution on RTLpath)
    + and RTLpathSE_simu_specs (the low-level specifications of the simulation checker)
    + and RTLpathSE_impl (the simulation checker with hash-consing)
    Forgeting superblocksRTLPath to RTLRTLpath.transf_programRTLpathproof
    Passes from register allocation
    Register allocation (validation a posteriori) RTL to LTLStackingproof
    Separation
    -

    Compilation passes introduced for KVX VLIW

    - - + + + + @@ -310,7 +346,7 @@ This IR is generic over the processor, even if currently, only used for KVX. Machblockgenproof - + @@ -319,15 +355,16 @@ This IR is generic over the processor, even if currently, only used for KVX. Asmblockgenproof - + - + - + -- cgit From ba911078843e798499c1cd612f806df8e48e5254 Mon Sep 17 00:00:00 2001 From: Sylvain Boulmé Date: Wed, 16 Dec 2020 17:42:50 +0100 Subject: try coq.8.12.2 in the CI --- .gitlab-ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 88cc9fd4..283f27f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ stages: check-admitted: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - eval `opam config env` - opam update @@ -22,7 +22,7 @@ check-admitted: build_x86_64: stage: build - image: coqorg/coq:8.12-ocaml-4.11-flambda + image: coqorg/coq:8.12.2-ocaml-4.11-flambda before_script: - eval `opam config env` - opam update @@ -43,7 +43,7 @@ build_x86_64: build_ia32: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-multilib @@ -66,7 +66,7 @@ build_ia32: build_aarch64: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-aarch64-linux-gnu qemu-user @@ -89,7 +89,7 @@ build_aarch64: build_arm: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-arm-linux-gnueabi qemu-user @@ -113,7 +113,7 @@ build_arm: build_armhf: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-arm-linux-gnueabihf qemu-user @@ -136,7 +136,7 @@ build_armhf: build_ppc: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-powerpc-linux-gnu qemu-user @@ -157,7 +157,7 @@ build_ppc: build_ppc64: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-powerpc64-linux-gnu @@ -178,7 +178,7 @@ build_ppc64: build_rv64: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-riscv64-linux-gnu qemu-user @@ -201,7 +201,7 @@ build_rv64: build_rv32: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install gcc-riscv64-linux-gnu qemu-user @@ -222,7 +222,7 @@ build_rv32: build_kvx: stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install sshpass openssh-client libzip4 lttng-tools liblttng-ctl-dev liblttng-ust-dev babeltrace @@ -249,7 +249,7 @@ build_kvx: pages: # TODO: change to "deploy" when "build" succeeds (or integrate with "build_kvx" above ?) stage: build - image: coqorg/coq:8.11.2-ocaml-4.11.1-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update - sudo apt-get -y install sshpass openssh-client libzip4 lttng-tools liblttng-ctl-dev liblttng-ust-dev babeltrace -- cgit From a644da350c329d302150310a0995ccf1f72937e5 Mon Sep 17 00:00:00 2001 From: Sylvain Boulmé Date: Wed, 16 Dec 2020 18:11:28 +0100 Subject: fix CI for x86_64 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 283f27f6..7f992502 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,7 @@ check-admitted: build_x86_64: stage: build - image: coqorg/coq:8.12.2-ocaml-4.11-flambda + image: coqorg/coq:8.12.2-ocaml-4.11.1-flambda before_script: - eval `opam config env` - opam update -- cgit From e21a56acc2d28995aef4586668f756806a53869b Mon Sep 17 00:00:00 2001 From: Sylvain Boulmé Date: Thu, 17 Dec 2020 12:06:37 +0100 Subject: add profiling entry-points in the htmldoc. --- doc/index-kvx.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/doc/index-kvx.html b/doc/index-kvx.html index 39fdf799..dc646a67 100644 --- a/doc/index-kvx.html +++ b/doc/index-kvx.html @@ -253,6 +253,23 @@ This IR is generic over the processor, even if currently, only used for KVX. + + + + + + + + + + + + + + + @@ -372,12 +389,13 @@ This IR is generic over the processor, even if currently, only used for KVX.
    Passes introduced for KVX VLIW
    Reconstruction of basic-blocks at Mach level Mach to Machblock Machblockgen
    Emission of purely sequential assembly code Machblock to Asmblock Asmblockgen
    Bundling (and basic-block scheduling) Asmblock to AsmvliwPostpassScheduling using
    - Asmblockdeps and the abstractbb library
    PostpassScheduling
    + using Asmblockdeps
    + and the abstractbb library
    PostpassSchedulingproof
    Flattening bundles (only a bureaucratic operation) Asmvliw to Asm AsmgenUnusedglobproof
    Passes introduced for profiling (for later use in trace selection)
    Insert profiling annotations (for recording experiments -- see PROFILE.md). + RTL to RTLProfilingProfilingproof
    Update ICond nodes (from recorded experiments -- see PROFILE.md). + RTL to RTLProfilingExploitProfilingExploitproof
    Passes introduced for superblock prepass scheduling
    - -

    All together

    +

    All together (there are many more RTL passes than on vanilla CompCert: their order is specified in Compiler)

      +
    • Compiler: composing the passes together; whole-compiler semantic preservation theorems. +
    • Complements: interesting consequences of the semantic preservation theorems.
    -- cgit