llvm-project/llvm/test/Transforms/IROutliner
Andrew Litteken e6ae623314 [IROutliner] Adding support for consolidating functions with different output arguments.
Certain regions can have values introduced inside the region that are
used outside of the region. These may not be the same for each similar
region, so we must create one over arching set of arguments for the
consolidated function.

We do this by iterating over the outputs for each extracted function,
and creating as many different arguments to encapsulate the different
outputs sets. For each output set, we create a different block with the
necessary stores from the value to the output register. There is then
one switch statement, controlled by an argument to the function, to
differentiate which block to use.

Changed Tests for consistency:
llvm/test/Transforms/IROutliner/extraction.ll
llvm/test/Transforms/IROutliner/illegal-assumes.ll
llvm/test/Transforms/IROutliner/illegal-memcpy.ll
llvm/test/Transforms/IROutliner/illegal-memmove.ll
llvm/test/Transforms/IROutliner/illegal-vaarg.ll

Tests to test new functionality:
llvm/test/Transforms/IROutliner/outlining-different-output-blocks.ll
llvm/test/Transforms/IROutliner/outlining-remapped-outputs.ll
llvm/test/Transforms/IROutliner/outlining-same-output-blocks.ll

Reviewers: jroelofs, paquette

Differential Revision: https://reviews.llvm.org/D87296
2020-12-28 16:17:07 -06:00
..
extraction.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00
illegal-allocas.ll [IRSim][IROutliner] Adding InstVisitor to disallow certain operations. 2020-12-17 19:33:57 -06:00
illegal-assumes.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00
illegal-branches.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-callbr.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-calls.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-catchpad.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-cleanup.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-frozen.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-gep.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-invoke.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-landingpad.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-memcpy.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00
illegal-memmove.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00
illegal-memset.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-phi-nodes.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
illegal-vaarg.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00
legal-debug.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
outlining-address-taken.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
outlining-commutative-fp.ll [IRSim] Adding commutativity matching to structure checking 2020-12-23 15:02:00 -06:00
outlining-commutative.ll [IRSim] Adding commutativity matching to structure checking 2020-12-23 15:02:00 -06:00
outlining-constants-vs-registers.ll [IROutliner] Adding support for elevating constants that are not the same in each region to arguments 2020-12-23 13:03:05 -06:00
outlining-different-constants.ll [IROutliner] Adding support for elevating constants that are not the same in each region to arguments 2020-12-23 13:03:05 -06:00
outlining-different-globals.ll [IROutliner] Adding support for elevating constants that are not the same in each region to arguments 2020-12-23 13:03:05 -06:00
outlining-different-output-blocks.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00
outlining-different-structure.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
outlining-isomorphic-predicates.ll [IRSim] Adding support for isomorphic predicates 2020-12-23 19:42:35 -06:00
outlining-remapped-outputs.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00
outlining-same-constants.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
outlining-same-globals.ll [IROutliner] Deduplicating functions that only require inputs. 2020-12-19 17:34:34 -06:00
outlining-same-output-blocks.ll [IROutliner] Adding support for consolidating functions with different output arguments. 2020-12-28 16:17:07 -06:00