summaryrefslogtreecommitdiff
path: root/src/gen_lib/sample_gen/power.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-06-24 19:06:22 +0100
committerAlasdair Armstrong2017-06-24 19:06:22 +0100
commit7691516974eaaa7c41179818e1d76d073c72cc18 (patch)
treed64c7305733b3729d4d6fe3eac37f09297c22efc /src/gen_lib/sample_gen/power.ml
parent98a20e197ef086bd294e157f4eaf75f9f025ff69 (diff)
Added implicit casting
Added support for implicit casting to the bi-directional type checker. The casts can be any user-specified function, and in princple don't have to be hardcoded. This allows us to typecheck definitions such as function bit[64] rGPR idx = { if idx == 0 then 0 else GPR[idx] } in the MIPS spec, which involves lots of casting from integers to bitvectors, as well as casting from a named register to it's value (implicit dereferencing).
Diffstat (limited to 'src/gen_lib/sample_gen/power.ml')
0 files changed, 0 insertions, 0 deletions