24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_GRAPH_PASSMANAGER_H
25 #define ARM_COMPUTE_GRAPH_PASSMANAGER_H
60 const std::vector<std::unique_ptr<IGraphMutator>> &
passes()
const;
73 void append(std::unique_ptr<IGraphMutator>
pass,
bool conditional =
true);
95 std::vector<std::unique_ptr<IGraphMutator>> _passes;
PassManager()
Constructor.
decltype(strategy::transforms) typedef type
MutationType
Mutation type.
void clear()
Clears all the passes.
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.
void run_type(Graph &g, IGraphMutator::MutationType type)
Runs a mutation passes of a specific type on a given graph.
PassManager & operator=(const PassManager &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
const std::vector< std::unique_ptr< IGraphMutator > > & passes() const
Mutation passes accessors.
Copyright (c) 2017-2024 Arm Limited.
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.