comparison include/llvm/Transforms/Scalar/SimplifyCFG.h @ 148:63bd29f05246

merged
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Aug 2019 19:46:37 +0900
parents c2174574ed3a
children
comparison
equal deleted inserted replaced
146:3fc4d5c3e21e 148:63bd29f05246
1 //===- SimplifyCFG.h - Simplify and canonicalize the CFG --------*- C++ -*-===// 1 //===- SimplifyCFG.h - Simplify and canonicalize the CFG --------*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // 4 // See https://llvm.org/LICENSE.txt for license information.
5 // This file is distributed under the University of Illinois Open Source 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // License. See LICENSE.TXT for details.
7 // 6 //
8 //===----------------------------------------------------------------------===// 7 //===----------------------------------------------------------------------===//
9 /// \file 8 /// \file
10 /// This file provides the interface for the pass responsible for both 9 /// This file provides the interface for the pass responsible for both
11 /// simplifying and canonicalizing the CFG. 10 /// simplifying and canonicalizing the CFG.
13 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
14 13
15 #ifndef LLVM_TRANSFORMS_SCALAR_SIMPLIFYCFG_H 14 #ifndef LLVM_TRANSFORMS_SCALAR_SIMPLIFYCFG_H
16 #define LLVM_TRANSFORMS_SCALAR_SIMPLIFYCFG_H 15 #define LLVM_TRANSFORMS_SCALAR_SIMPLIFYCFG_H
17 16
17 #include "llvm/Transforms/Utils/Local.h"
18 #include "llvm/IR/Function.h" 18 #include "llvm/IR/Function.h"
19 #include "llvm/IR/PassManager.h" 19 #include "llvm/IR/PassManager.h"
20 #include "llvm/Transforms/Utils/Local.h"
21 20
22 namespace llvm { 21 namespace llvm {
23 22
24 /// A pass to simplify and canonicalize the CFG of a function. 23 /// A pass to simplify and canonicalize the CFG of a function.
25 /// 24 ///
44 43
45 44
46 /// Construct a pass with optional optimizations. 45 /// Construct a pass with optional optimizations.
47 SimplifyCFGPass(const SimplifyCFGOptions &PassOptions); 46 SimplifyCFGPass(const SimplifyCFGOptions &PassOptions);
48 47
49 /// \brief Run the pass over the function. 48 /// Run the pass over the function.
50 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); 49 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
51 }; 50 };
52 51
53 } 52 }
54 53