summaryrefslogtreecommitdiff
path: root/clang-r353983/include/llvm/Transforms/Scalar/LoopInstSimplify.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-r353983/include/llvm/Transforms/Scalar/LoopInstSimplify.h')
-rw-r--r--clang-r353983/include/llvm/Transforms/Scalar/LoopInstSimplify.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/clang-r353983/include/llvm/Transforms/Scalar/LoopInstSimplify.h b/clang-r353983/include/llvm/Transforms/Scalar/LoopInstSimplify.h
new file mode 100644
index 00000000..f6e86d11
--- /dev/null
+++ b/clang-r353983/include/llvm/Transforms/Scalar/LoopInstSimplify.h
@@ -0,0 +1,33 @@
+//===- LoopInstSimplify.h - Loop Inst Simplify Pass -------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This pass performs lightweight instruction simplification on loop bodies.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
+#define LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
+
+#include "llvm/Analysis/LoopAnalysisManager.h"
+#include "llvm/IR/PassManager.h"
+
+namespace llvm {
+
+class Loop;
+class LPMUpdater;
+
+/// Performs Loop Inst Simplify Pass.
+class LoopInstSimplifyPass : public PassInfoMixin<LoopInstSimplifyPass> {
+public:
+ PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
+ LoopStandardAnalysisResults &AR, LPMUpdater &U);
+};
+
+} // end namespace llvm
+
+#endif // LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H