Type checking and Dominator Tree integrity checks in Verifier (#66)

* Verify that a recomputed dominator tree is identical to the existing one.
* The verifier now typechecks instruction results and arguments.
* The verifier now typechecks instruction results and arguments.
* The verifier now typechecks instruction results and arguments.
* Added `inst_{fixed,variable}_args` accessor functions.
* Improved error messages in verifier.
* Type check return statements against the function signature.
This commit is contained in:
Angus Holder
2017-03-29 21:14:42 +01:00
committed by Jakob Stoklund Olesen
parent 1d6049b8f8
commit b5fda64b49
5 changed files with 269 additions and 15 deletions

View File

@@ -210,10 +210,6 @@ def gen_instruction_data_impl(fmt):
fmt.doc_comment(
"""
Get the value arguments to this instruction.
This is returned as two `Value` slices. The first one
represents the fixed arguments, the second any variable
arguments.
""")
gen_arguments_method(fmt, False)
fmt.doc_comment(