[CodeGen] Print executed statement instances at runtime.
commitaa2627219c4f14185bb652d0137a4d09f68bf989
authorMichael Kruse <llvm@meinersbur.de>
Wed, 25 Apr 2018 19:43:49 +0000 (25 19:43 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 25 Apr 2018 19:43:49 +0000 (25 19:43 +0000)
treeba8280bedf19961ac3c2f58eda749c4e64e51547
parent0944661773640aa8a7d7852e5553a65a79858916
[CodeGen] Print executed statement instances at runtime.

Add the options -polly-codegen-trace-stmts and
-polly-codegen-trace-scalars. When enabled, adds a call to the
beginning of every generated statement that prints the executed
statement instance. With -polly-codegen-trace-scalars, it also prints
the value of all scalars that are used in the statement, and PHIs
defined in the beginning of the statement.

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

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@330864 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/CodeGen/BlockGenerators.h
include/polly/CodeGen/RuntimeDebugBuilder.h
lib/CodeGen/BlockGenerators.cpp
lib/CodeGen/RuntimeDebugBuilder.cpp
test/Isl/CodeGen/RuntimeDebugBuilder/stmt_tracing.ll [new file with mode: 0644]