18#if !defined(NDEBUG) && defined(EXPENSIVE_CHECKS)
19 auto HashBefore =
F.hash();
21 bool PassChange =
Pass->runOnFunction(
F,
A);
22#if !defined(NDEBUG) && defined(EXPENSIVE_CHECKS)
23 auto HashAfter =
F.hash();
24 assert((PassChange || HashAfter == HashBefore) &&
25 "The pass returned false (i.e., no change) but the IR changed!");
36#if !defined(NDEBUG) && defined(EXPENSIVE_CHECKS)
37 auto &
F = R.getParentFunction();
38 auto HashBefore =
F.hash();
40 bool PassChange =
Pass->runOnRegion(R,
A);
41#if !defined(NDEBUG) && defined(EXPENSIVE_CHECKS)
42 auto HashAfter =
F.hash();
43 assert((PassChange || HashAfter == HashBefore) &&
44 "The pass returned false (i.e., no change) but the IR changed!");
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
SmallVector< std::unique_ptr< FunctionPass > > Passes
The base class of a Sandbox IR Pass.
bool runOnRegion(Region &R, const Analyses &A) final
\Returns true if it modifies R.