]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/Transforms/Scalar/DCE.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / Transforms / Scalar / DCE.h
1 //===- DCE.h - Dead code elimination ----------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file provides the interface for the Dead Code Elimination pass.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #ifndef LLVM_TRANSFORMS_SCALAR_DCE_H
14 #define LLVM_TRANSFORMS_SCALAR_DCE_H
15
16 #include "llvm/IR/Function.h"
17 #include "llvm/IR/PassManager.h"
18
19 namespace llvm {
20
21 /// Basic Dead Code Elimination pass.
22 class DCEPass : public PassInfoMixin<DCEPass> {
23 public:
24   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
25 };
26 }
27
28 #endif // LLVM_TRANSFORMS_SCALAR_DCE_H