[CodeGen] Print executed statement instances at runtime.
authorMichael Kruse <llvm@meinersbur.de>
Wed, 25 Apr 2018 19:43:49 +0000 (19:43 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 25 Apr 2018 19:43:49 +0000 (19:43 +0000)
commite819fffee3b948c7699ce3948b35624bf6cc63ae
tree79845af0f5f0e535085dac7244a7010bfa29813a
parent152060275fd43196bc34648d1a264e6478555860
[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

llvm-svn: 330864
polly/include/polly/CodeGen/BlockGenerators.h
polly/include/polly/CodeGen/RuntimeDebugBuilder.h
polly/lib/CodeGen/BlockGenerators.cpp
polly/lib/CodeGen/RuntimeDebugBuilder.cpp
polly/test/Isl/CodeGen/RuntimeDebugBuilder/stmt_tracing.ll [new file with mode: 0644]