hanchenye-llvm-project/polly/include/polly
Michael Kruse 5369ea5dd5 Allow arbitrary function calls for debugging purposes.
Add the switch -polly-debug-func to define the name of a debug
function. This function is ignored for any validity check.

Its purpose is to allow to observe a value after transformation by a
SCoP, and to follow which statements are executed in which order. For
instance, consider the following code:

    static void dbg_printf(int sum, int i) {
      fprintf(stderr, "The value of sum is %d, i=%d\n", sum, i);
      fflush(stderr);
    }

    void func(int n) {
      int sum = 0;
      for (int i = 0; i < 16; i+=1) {
        sum += i;
        dbg_printf(sum, i);
      }
    }

Executing this after Polly's codegen with -polly-debug-func=dbg_printf
reveals the new execution order and the assumed values at that point of
execution.

Differential Revision: https://reviews.llvm.org/D45728

llvm-svn: 330466
2018-04-20 18:55:44 +00:00
..
CodeGen [RuntimeDebugBuilder] Print vectors passed without withspaces 2018-04-18 20:28:26 +00:00
Config [CMake] Retire Polly's FindCUDA.cmake in favour of CMake's default FindCUDA.cmake script. 2017-06-06 19:20:48 +00:00
Support Allow arbitrary function calls for debugging purposes. 2018-04-20 18:55:44 +00:00
Canonicalization.h
CodePreparation.h Add missing license text to two headers. NFC. 2017-08-10 15:40:36 +00:00
DeLICM.h [DeLICM] Export Known and Written to DeLICMTests. NFC. 2017-04-13 16:32:39 +00:00
DependenceInfo.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
FlattenAlgo.h Introduce isl C++ bindings, Part 1: value_ptr style interface 2017-03-10 11:41:03 +00:00
FlattenSchedule.h Fix namespaces after clang-format update 2017-03-01 15:54:27 +00:00
ForwardOpTree.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
JSONExporter.h Add missing license text to two headers. NFC. 2017-08-10 15:40:36 +00:00
LinkAllPasses.h [ScopInliner] Add a simple Scop-based inliner to polly. 2017-08-17 21:57:23 +00:00
Options.h
PolyhedralInfo.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
PruneUnprofitable.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
RegisterPasses.h
ScheduleOptimizer.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
ScopBuilder.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
ScopDetection.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
ScopDetectionDiagnostic.h Adjust to clang-format changes 2018-03-20 17:16:32 +00:00
ScopInfo.h [ScopInfo] Completely remove MemoryAccesses when their parent statement is removed. 2018-04-09 23:13:05 +00:00
ScopPass.h Remove namespace comment at end of class. NFC. 2018-04-05 15:32:06 +00:00
Simplify.h Add more statistics. 2017-08-23 13:50:30 +00:00
ZoneAlgo.h [nfc] Iwyu: forward-declare/include raw_ostream in zone algo 2017-11-17 11:34:29 +00:00