annotate include/llvm/Transforms/Scalar/LoopDistribute.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
120
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
1 //===- LoopDistribute.cpp - Loop Distribution Pass --------------*- C++ -*-===//
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
2 //
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 121
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 121
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 121
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
120
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
6 //
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
8 //
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
9 // This file implements the Loop Distribution Pass. Its main focus is to
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
10 // distribute loops that cannot be vectorized due to dependence cycles. It
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
11 // tries to isolate the offending dependences into a new loop allowing
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
12 // vectorization of the remaining parts.
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
13 //
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
14 //===----------------------------------------------------------------------===//
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
15
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
16 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPDISTRIBUTE_H
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
17 #define LLVM_TRANSFORMS_SCALAR_LOOPDISTRIBUTE_H
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
18
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
19 #include "llvm/IR/PassManager.h"
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
20
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
21 namespace llvm {
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
22
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
23 class Function;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
24
120
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
25 class LoopDistributePass : public PassInfoMixin<LoopDistributePass> {
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
26 public:
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
27 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
28 };
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
29
120
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
30 } // end namespace llvm
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
31
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
32 #endif // LLVM_TRANSFORMS_SCALAR_LOOPDISTRIBUTE_H