Skip to content

Commit 5e9ae24

Browse files
committed
[TSAR, Transform] Add handling of nested pragmas.
1 parent 169a53f commit 5e9ae24

File tree

4 files changed

+109
-172
lines changed

4 files changed

+109
-172
lines changed

include/tsar/Support/DiagnosticKinds.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,8 @@ def error_expect_function_param : Error<"expected function parameter name">;
176176

177177
def note_record_member_unknown: Error<"record has no member '%0'">;
178178
def note_declared_here: Note<"declared here">;
179+
180+
def warn_loop_swapping_diff_reduction: Warning<"unable to swap loops due to the different reduction types">;
181+
def warn_loop_swapping_true_anti_dependence: Warning<"unable to swap loops due to the true or anti dependence">;
182+
def warn_loop_swapping_missing_loop: Warning<"not enough loops for swapping">;
183+
def warn_loop_swapping_redundant_loop: Warning<"too many loops for swapping, ignore redundant">;

include/tsar/Transform/Clang/LoopSwapping.h

Lines changed: 0 additions & 91 deletions
This file was deleted.

include/tsar/Transform/Clang/Passes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ModulePass * createClangStructureReplacementPass();
9292
/// Initialize a pass to perform replacement of access to structure fields
9393
/// with separate variables.
9494
void initializeClangStructureReplacementPassPass(PassRegistry &Registry);
95-
}
95+
9696
/// Creates a pass to perform swapping of loops.
9797
FunctionPass * createClangLoopSwapping();
9898

0 commit comments

Comments
 (0)