lean4-htt/src/library/compiler/init_module.cpp
Leonardo de Moura d8af3dc906 feat(library/compiler): add ctype_checker
It is just a big wishlist at this point.
The goal is to use it instead of the kernel type_checker.
2018-09-28 15:37:41 -07:00

53 lines
1.4 KiB
C++

/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "library/compiler/preprocess.h"
#include "library/compiler/nat_value.h"
#include "library/compiler/comp_irrelevant.h"
#include "library/compiler/inliner.h"
#include "library/compiler/erase_irrelevant.h"
#include "library/compiler/simp_inductive.h"
#include "library/compiler/elim_recursors.h"
#include "library/compiler/vm_compiler.h"
#include "library/compiler/ctype_checker.h"
#include "library/compiler/lcnf.h"
#include "library/compiler/elim_dead_let.h"
#include "library/compiler/cse.h"
namespace lean {
void initialize_compiler_module() {
initialize_preprocess();
initialize_nat_value();
initialize_comp_irrelevant();
initialize_inliner();
initialize_erase_irrelevant();
initialize_simp_inductive();
initialize_vm_compiler();
initialize_elim_recursors();
//======
initialize_ctype_checker();
initialize_lcnf();
initialize_elim_dead_let();
initialize_cse();
}
void finalize_compiler_module() {
finalize_cse();
finalize_elim_dead_let();
finalize_lcnf();
finalize_ctype_checker();
//======
finalize_elim_recursors();
finalize_vm_compiler();
finalize_simp_inductive();
finalize_erase_irrelevant();
finalize_inliner();
finalize_comp_irrelevant();
finalize_nat_value();
finalize_preprocess();
}
}