File tree Expand file tree Collapse file tree 5 files changed +340
-163
lines changed Expand file tree Collapse file tree 5 files changed +340
-163
lines changed Original file line number Diff line number Diff line change @@ -195,3 +195,4 @@ def warn_loopswap_not_perfect: Warning<"expected perfect loop">;
195195def warn_loopswap_id_not_found: Warning<"induction not found">;
196196def warn_loopswap_not_forstmt: Warning<"expected for loop">;
197197def err_loopswap_dependency: Error<"loop contains dependence. use 'nostrict' clause to skip this check">;
198+ def warn_loopswap_no_analysis: Warning<"loop has no analysis. use 'nostrict' clause to skip this check">;
Original file line number Diff line number Diff line change 1- #ifndef TSAR_CLANG_RENAME_LOCAL_H
2- #define TSAR_CLANG_RENAME_LOCAL_H
1+ #ifndef TSAR_CLANG_LOOP_SWAP_H
2+ #define TSAR_CLANG_LOOP_SWAP_H
33
4- #include " tsar/Transform/Clang/Passes.h"
54#include < bcl/utility.h>
65#include < llvm/Pass.h>
7-
86namespace llvm {
9- class ClangLoopSwapPass : public ModulePass , private bcl ::Uncopyable {
7+ class ClangLoopSwap : public ModulePass , private bcl ::Uncopyable {
108public:
119 static char ID;
12-
13- ClangLoopSwapPass () : ModulePass(ID) {
14- initializeClangLoopSwapPassPass (*PassRegistry::getPassRegistry ());
15- }
16-
10+ ClangLoopSwap ();
1711 bool runOnModule (Module &M) override ;
1812 void getAnalysisUsage (AnalysisUsage &AU) const override ;
1913};
2014} // namespace llvm
21- #endif
15+
16+ #endif
Original file line number Diff line number Diff line change @@ -84,5 +84,8 @@ void initializeClangStructureReplacementPassPass(PassRegistry &Registry);
8484
8585void initializeClangLoopSwapPassPass (PassRegistry &Registry);
8686ModulePass* createClangLoopSwapPass ();
87+
88+ void initializeClangLoopSwapPass (PassRegistry &Registry);
89+ ModulePass* createClangLoopSwap ();
8790}
8891#endif // TSAR_CLANG_TRANSFORM_PASSES_H
You can’t perform that action at this time.
0 commit comments