X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeverify.h;h=aa2b9bb7cb42ae1e96ca1679aeede9d1e6136589;hb=0a8dac2b5fb9e59ea2add322baf61237b607bea5;hp=f744ba2403b4ebba41468b26c510dd5b4c751f00;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/ir/be/beverify.h b/ir/be/beverify.h index f744ba240..aa2b9bb7c 100644 --- a/ir/be/beverify.h +++ b/ir/be/beverify.h @@ -29,7 +29,6 @@ #include #include "irgraph.h" -#include "beirg.h" #include "bearch.h" /** @@ -38,26 +37,26 @@ * * @param irg The irg to check. * @param cls The register class to check. - * @return 1 if the pressure is valid, 0 otherwise. + * @return true if the pressure is valid, false otherwise. */ -int be_verify_register_pressure(ir_graph *irg, - const arch_register_class_t* cls); +bool be_verify_register_pressure(ir_graph *irg, + const arch_register_class_t* cls); /** * Does some sanity checks on the schedule. * * @param irg The irg to check - * @return 1 if the schedule is valid, 0 otherwise + * @return true if the schedule is valid, false otherwise */ -int be_verify_schedule(ir_graph *irg); +bool be_verify_schedule(ir_graph *irg); /** * Verify spillslots * * @param irg The irg to check - * @return 1 if spillslots are valid, 0 otherwise + * @return true if spillslots are valid, false otherwise */ -int be_verify_spillslots(ir_graph *irg); +bool be_verify_spillslots(ir_graph *irg); /** * Verify register allocation: Checks that no 2 live nodes have the same @@ -69,4 +68,9 @@ int be_verify_spillslots(ir_graph *irg); */ bool be_verify_register_allocation(ir_graph *irg); +/** + * Check the given liveness information against a freshly computed one. + */ +void be_liveness_check(be_lv_t *lv); + #endif