summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2023-02-14 15:15:14 +0000
committerFlorian Hahn <flo@fhahn.com>2023-02-14 15:15:57 +0000
commitf04421739232b19d70fd00fbb66b136a3f1b22ed (patch)
tree3654d68f3bf555bbdcbb96ac8f486fc6e214fb8d /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent9c14132d7b6c9e6bc69cabd0e81a371731f2376c (diff)
[ConstraintElim] Add reproducer remarks.
This patch adds an optimization remark for each performed optimization containing a module that can be used to reproduce the transformation. The reproducer function contains a series of @llvm.assume calls, one for each condition currently in scope. For each condition, the operand instruction are cloned until we reach operands that have an entry in the constraint system. Those will then be added as function arguments. The reproducer functions are minimal, that is, they only contain the conditions required for a given simplification. The resulting IR is very compact and can be used to verify each transformation individually. It also provides a python script to extract the IR from the remarks and create LLVM IR files from it. Reviewed By: paquette Differential Revision: https://reviews.llvm.org/D143323
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions