[Alignment][NFC] Support compile time constants
[llvm-core.git] / include / llvm / Transforms / Scalar / DCE.h
blob974e4b20d152d38737f16f9cd65d08e3fbf88264
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.
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"
19 namespace llvm {
21 /// Basic Dead Code Elimination pass.
22 class DCEPass : public PassInfoMixin<DCEPass> {
23 public:
24 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
28 #endif // LLVM_TRANSFORMS_SCALAR_DCE_H