Skip to content

Commit b2e7f29

Browse files
Vladislavkaniandr
authored andcommitted
[TSAR, Transform, LoopInterchange] Rename
1 parent fb8ebf4 commit b2e7f29

File tree

6 files changed

+96
-99
lines changed

6 files changed

+96
-99
lines changed

include/tsar/Support/DiagnosticKinds.td

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ def note_declared_here: Note<"declared here">;
190190
// Fortran-specific diagnostics.
191191
def warn_fortran_no_execution_part: Warning<"unable to locate execution-part statmenets">;
192192

193-
def warn_loopswap_not_canonical: Warning<"expected canonical loop">;
194-
def warn_loopswap_not_perfect: Warning<"expected perfect loop">;
195-
def warn_loopswap_id_not_found: Warning<"induction not found">;
196-
def warn_loopswap_not_forstmt: Warning<"expected for loop">;
197-
def 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">;
193+
def warn_interchange_not_canonical: Warning<"expected canonical loop">;
194+
def warn_interchange_not_perfect: Warning<"expected perfect loop">;
195+
def warn_interchange_id_not_found: Warning<"induction not found">;
196+
def warn_interchange_not_forstmt: Warning<"expected for loop">;
197+
def err_interchange_dependency: Error<"loop contains dependence. use 'nostrict' clause to skip this check">;
198+
def warn_interchange_no_analysis: Warning<"loop has no analysis. use 'nostrict' clause to skip this check">;

include/tsar/Support/Directives.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def Propagate : Clause<"propagate", Transform>;
132132

133133
def Rename : Clause<"rename", Transform>;
134134

135-
def LoopSwap : Clause<"swap", Transform,
136-
[LParen, PPIdentifier, Comma, PPIdentifier, RParen]
135+
def LoopInterchange : Clause<"interchange", Transform,
136+
[LParen, PPIdentifier, Comma, PPIdentifier, RParen]>;
137137

138138
def Replace : Clause<"replace", Transform,
139139
[ZeroOrOne<[LParen, Identifier, ZeroOrMore<[Comma, Identifier]>, RParen]>]>;

include/tsar/Transform/Clang/LoopInterchange.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
#ifndef TSAR_CLANG_LOOP_SWAP_H
2-
#define TSAR_CLANG_LOOP_SWAP_H
1+
#ifndef TSAR_CLANG_LOOP_INTERCHANGE_H
2+
#define TSAR_CLANG_LOOP_INTERCHANGE_H
33

44
#include <bcl/utility.h>
55
#include <llvm/Pass.h>
66
namespace llvm {
7-
class ClangLoopSwap : public ModulePass, private bcl::Uncopyable {
7+
class ClangLoopInterchange : public ModulePass, private bcl::Uncopyable {
88
public:
99
static char ID;
10-
ClangLoopSwap();
10+
ClangLoopInterchange();
1111
bool runOnModule(Module &M) override;
1212
void getAnalysisUsage(AnalysisUsage &AU) const override;
1313
};

include/tsar/Transform/Clang/Passes.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ ModulePass * createClangStructureReplacementPass();
8282
/// with separate variables.
8383
void initializeClangStructureReplacementPassPass(PassRegistry &Registry);
8484

85-
void initializeClangLoopSwapPassPass(PassRegistry &Registry);
86-
ModulePass* createClangLoopSwapPass();
87-
88-
void initializeClangLoopSwapPass(PassRegistry &Registry);
89-
ModulePass* createClangLoopSwap();
85+
void initializeClangLoopInterchangePass(PassRegistry &Registry);
86+
ModulePass* createClangLoopInterchange();
9087
}
9188
#endif//TSAR_CLANG_TRANSFORM_PASSES_H

0 commit comments

Comments
 (0)