1 //===- DCE.h - Dead code elimination ----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides the interface for the Dead Code Elimination pass.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TRANSFORMS_SCALAR_DCE_H
15 #define LLVM_TRANSFORMS_SCALAR_DCE_H
17 #include "llvm/IR/Function.h"
18 #include "llvm/IR/PassManager.h"
22 /// Basic Dead Code Elimination pass.
23 class DCEPass : public PassInfoMixin<DCEPass> {
25 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
29 #endif // LLVM_TRANSFORMS_SCALAR_DCE_H