aboutsummaryrefslogtreecommitdiffstats
path: root/backend/Cminortyping.v
Commit message (Collapse)AuthorAgeFilesLines
* Cminortyping: relax typechecking of function callsXavier Leroy2019-06-061-12/+15
| | | | | | | Sometimes the result of a void function is assigned to a variable. This can occur with C conditional expressions ?: at type void, e.g. the "assert" macro of MacOS. A similar relaxation was already there in RTLtyping.
* Type inference and type checking for CminorXavier Leroy2019-06-061-0/+797
This module is similar to RTLtyping: it performs type inference and type checking, but on the Cminor intermediate representation rather than the RTL IR. For each function, it returns a mapping from variables to types. Its first use will be if-conversion optimization.