[InstCombine] Signed saturation patterns
[llvm-core.git] / include / llvm / Transforms / Scalar / RewriteStatepointsForGC.h
blob12773c16dcc2972c7060c5294e705fe22d694eec
1 //===- RewriteStatepointsForGC.h - ------------------------------*- 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 interface to "Rewrite Statepoints for GC" pass.
11 // This passe rewrites call/invoke instructions so as to make potential
12 // relocations performed by the garbage collector explicit in the IR.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_TRANSFORMS_SCALAR_REWRITE_STATEPOINTS_FOR_GC_H
17 #define LLVM_TRANSFORMS_SCALAR_REWRITE_STATEPOINTS_FOR_GC_H
19 #include "llvm/IR/PassManager.h"
21 namespace llvm {
23 class DominatorTree;
24 class Function;
25 class Module;
26 class TargetTransformInfo;
27 class TargetLibraryInfo;
29 struct RewriteStatepointsForGC : public PassInfoMixin<RewriteStatepointsForGC> {
30 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
32 bool runOnFunction(Function &F, DominatorTree &, TargetTransformInfo &,
33 const TargetLibraryInfo &);
36 } // namespace llvm
38 #endif // LLVM_TRANSFORMS_SCALAR_REWRITE_STATEPOINTS_FOR_GC_H