opt plugin: support loop nest passes
MODIFY
scripts/rewritepass.py
scripts/rewritepass.py
@@ -108,6 +108,7 @@ def wrap(args):
'FUNCTION' : 'function',
'FUNCTION_ALIAS' : 'function',
'LOOP' : 'loop',
+ 'LOOPNEST' : 'loop',
'LOOP-MSSA' : 'loop-mssa',
'MODULE' : 'module',
'MODULE_ALIAS' : 'module',
@@ -133,6 +134,7 @@ else:
('sroa,verify', 'function(sroa,verify)'),
('verify,sroa', 'function(verify,sroa)'),
('loop-mssa(loop-instsimplify)', 'function(loop-mssa(loop-instsimplify))'),
+ ('loop-unroll-and-jam', 'function(loop(loop-unroll-and-jam))'),
('require<basic-aa>,sroa', 'function(require<basic-aa>,sroa)'),
('cgscc(repeat<2>(inline,function(dce)))', 'cgscc(repeat<2>(inline,function(dce)))'),
('repeat<2>(sroa)', 'function(repeat<2>(sroa))'),

opt plugin: support loop nest passes