/*
 * Copyright (C) 2015 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ART_COMPILER_OPTIMIZING_LICM_H_
#define ART_COMPILER_OPTIMIZING_LICM_H_

#include "nodes.h"
#include "optimization.h"

namespace art {

class SideEffectsAnalysis;

class LICM : public HOptimization {
 public:
  LICM(HGraph* graph,
       const SideEffectsAnalysis& side_effects,
       OptimizingCompilerStats* stats,
       const char* name = kLoopInvariantCodeMotionPassName)
      : HOptimization(graph, name, stats),
        side_effects_(side_effects) {}

  bool Run() override;

  static constexpr const char* kLoopInvariantCodeMotionPassName = "licm";

 private:
  const SideEffectsAnalysis& side_effects_;

  DISALLOW_COPY_AND_ASSIGN(LICM);
};

}  // namespace art

#endif  // ART_COMPILER_OPTIMIZING_LICM_H_
