blob: 7d82a9378f17576fa31be8fd3a12dfe351f070f0 [file] [log] [blame]
Nicolas Capens2ae9d742016-11-24 14:43:05 -05001// Copyright 2016 The SwiftShader Authors. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Nicolas Capens48461502018-08-06 14:20:45 -040015#ifndef rr_Optimizer_hpp
16#define rr_Optimizer_hpp
Nicolas Capens2ae9d742016-11-24 14:43:05 -050017
Nicolas Capens54313fb2021-02-19 14:26:27 -050018#include "Nucleus.hpp"
19
Nicolas Capens2ae9d742016-11-24 14:43:05 -050020#include "src/IceCfg.h"
21
Nicolas Capens157ba262019-12-10 17:49:14 -050022namespace rr {
23
Nicolas Capens54313fb2021-02-19 14:26:27 -050024void optimize(Ice::Cfg *function, Nucleus::OptimizerReport *report = nullptr);
Nicolas Capens157ba262019-12-10 17:49:14 -050025
26} // namespace rr
Nicolas Capens2ae9d742016-11-24 14:43:05 -050027
Ben Clayton713b8d32019-12-17 20:37:56 +000028#endif // rr_Optimizer_hpp