lib/mlrisc-lib/MLRISC/Tools/MDL/mlrisc-defs.sml
raw| 1 | (* |
| 2 | * MLRISC specific things are abstracted out here in this module. |
| 3 | *) |
| 4 | |
| 5 | functor MLRiscDefs(Ast : MDL_AST) : MLRISC_DEFS = |
| 6 | struct |
| 7 | structure Ast = Ast |
| 8 | |
| 9 | val predefinedKinds = ["GP","FP","CC","MEM","CTRL"] |
| 10 | fun isPredefinedCellKind x = List.exists (fn k => x=k) predefinedKinds |
| 11 | |
| 12 | val pseudoKinds = ["MEM","CTRL","CELLSET"] |
| 13 | fun isPseudoCellKind x = List.exists (fn k => x=k) pseudoKinds |
| 14 | |
| 15 | end |