1 //===- DCE.h - Dead code elimination ----------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file provides the interface for the Dead Code Elimination pass.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TRANSFORMS_SCALAR_DCE_H
14 #define LLVM_TRANSFORMS_SCALAR_DCE_H
16 #include "llvm/IR/Function.h"
17 #include "llvm/IR/PassManager.h"
21 /// Basic Dead Code Elimination pass.
22 class DCEPass
: public PassInfoMixin
<DCEPass
> {
24 PreservedAnalyses
run(Function
&F
, FunctionAnalysisManager
&AM
);
28 #endif // LLVM_TRANSFORMS_SCALAR_DCE_H