24.02.1
|
Go to the documentation of this file.
43 return (index >= _passes.size()) ? nullptr : _passes.at(index).get();
48 if (
pass && conditional)
51 _passes.push_back(std::move(
pass));
62 for (
auto &
pass : _passes)
74 for (
auto &
pass : _passes)
86 if (index >= _passes.size())
91 auto &
pass = _passes.at(index);
#define ARM_COMPUTE_LOG_GRAPH_INFO(x)
PassManager()
Constructor.
decltype(strategy::transforms) typedef type
MutationType
Mutation type.
void clear()
Clears all the passes.
#define ARM_COMPUTE_LOG_GRAPH_VERBOSE(x)
void run_index(Graph &g, size_t index)
Runs a specific mutation pass on a given graph.
void run_all(Graph &g)
Runs all the mutation passes on a given graph.
virtual const char * name()=0
Returns mutator name.
void run_type(Graph &g, IGraphMutator::MutationType type)
Runs a mutation passes of a specific type on a given graph.
virtual MutationType type() const =0
Returns mutation type.
const std::vector< std::unique_ptr< IGraphMutator > > & passes() const
Mutation passes accessors.
Copyright (c) 2017-2024 Arm Limited.
virtual void mutate(Graph &g)=0
Walk the graph and perform a specific mutation.
void append(std::unique_ptr< IGraphMutator > pass, bool conditional=true)
Appends a mutation pass.
IGraphMutator * pass(size_t index)
Accessor of a pass at a given index.