| 1 |
From Coq Require Import ZArith. |
| 2 |
From Coq Require Import List. |
| 3 |
From Coq Require Import Morphisms. |
| 4 |
From Coq Require Import MSetPositive. |
| 5 |
From Coq Require Import FMapPositive. |
| 6 |
Require Import Rewriter.Language.Language. |
| 7 |
Require Import Rewriter.Language.Inversion. |
| 8 |
Require Import Crypto.Language.API. |
| 9 |
Require Import Rewriter.Language.Wf. |
| 10 |
Require Import Crypto.Language.WfExtra. |
| 11 |
Require Import Crypto.MiscCompilerPasses. |
| 12 |
Require Import Crypto.MiscCompilerPassesProofs. |
| 13 |
|
| 14 |
Module Compilers. |
| 15 |
Import Language.Compilers. |
| 16 |
Import Language.Inversion.Compilers. |
| 17 |
Import Language.API.Compilers. |
| 18 |
Import Language.Wf.Compilers. |
| 19 |
Import Language.WfExtra.Compilers. |
| 20 |
Import MiscCompilerPasses.Compilers. |
| 21 |
Import MiscCompilerPassesProofs.Compilers. |
| 22 |
Import expr.Notations. |
| 23 |
Import invert_expr. |
| 24 |
Import Compilers.API. |
| 25 |
|
| 26 |
Module Subst01. |
| 27 |
Import MiscCompilerPassesProofs.Compilers.Subst01. |
| 28 |
|
| 29 |
Definition Wf_Subst01 is_ident_always_live {t} e Hwf |
| 30 |
:= @Wf_Subst01 _ ident _ _ _ _ _ is_ident_always_live t e Hwf. |
| 31 |
Definition Interp_Subst01 is_ident_always_live {t} e Hwf |
| 32 |
:= @Interp_Subst01 _ ident _ _ _ _ _ is_ident_always_live _ (@ident.interp) (@ident.interp_Proper) t e Hwf. |
| 33 |
End Subst01. |
| 34 |
|
| 35 |
#[global] |
| 36 |
Hint Resolve Subst01.Wf_Subst01 : wf_extra. |
| 37 |
#[global] |
| 38 |
Hint Opaque Subst01.Subst01 : wf_extra interp_extra. |
| 39 |
#[global] |
| 40 |
Hint Rewrite @Subst01.Interp_Subst01 : interp_extra. |
| 41 |
|
| 42 |
Module DeadCodeElimination. |
| 43 |
Import MiscCompilerPassesProofs.Compilers.DeadCodeElimination. |
| 44 |
|
| 45 |
Definition Wf_EliminateDead is_ident_always_live {t} e Hwf |
| 46 |
:= @Wf_EliminateDead _ ident _ _ _ _ _ is_ident_always_live t e Hwf. |
| 47 |
Definition Interp_EliminateDead is_ident_always_live {t} e Hwf |
| 48 |
:= @Interp_EliminateDead _ ident _ _ _ _ _ is_ident_always_live _ (@ident.interp) (@ident.interp_Proper) t e Hwf. |
| 49 |
End DeadCodeElimination. |
| 50 |
|
| 51 |
#[global] |
| 52 |
Hint Resolve DeadCodeElimination.Wf_EliminateDead : wf_extra. |
| 53 |
#[global] |
| 54 |
Hint Opaque DeadCodeElimination.EliminateDead : wf_extra interp_extra. |
| 55 |
#[global] |
| 56 |
Hint Rewrite @DeadCodeElimination.Interp_EliminateDead : interp_extra. |
| 57 |
End Compilers. |