[const evaluator] Expose the step-wise constant evaluation mode

(also referred to as flow-sensitive mode) so that the evaluator
can be used by clients to constant evaluate instructions in a
SILFunction body one by one following the flow of control.
This commit is contained in:
Ravi Kandhadai
2019-04-12 17:11:26 -07:00
parent 86e4467c52
commit 55e82004a2
6 changed files with 1073 additions and 4 deletions

View File

@@ -110,6 +110,8 @@ PASS(ComputeLoopInfo, "compute-loop-info",
"Compute Loop Information for Testing")
PASS(ConditionForwarding, "condition-forwarding",
"Conditional Branch Forwarding to Fold SIL switch_enum")
PASS(ConstantEvaluatorTester, "test-constant-evaluator",
"Test constant evaluator")
PASS(CopyForwarding, "copy-forwarding",
"Copy Forwarding to Remove Redundant Copies")
PASS(CopyPropagation, "copy-propagation",