Skip to content

Commit 015229f

Browse files
committed
Rename c_vect -> simics_util_vect
On popular demand. Also, rename ECVECT -> EOLDVECT and c_vect_without_provisional -> experimental_vect
1 parent 4692105 commit 015229f

21 files changed

+45
-45
lines changed

RELEASENOTES.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@
196196
various operations that rely on the `register_view` interface, such as the
197197
`dev_util.bank_regs` function and the `write-device-reg` and `probe-address`
198198
CLI commands.
199-
- `note 6` A new provisional feature `c_vect` has been added. When `provisional
200-
c_vect;` appears in the top of a DML file, DMLC will no longer print warnings
201-
when the `vect` syntax is used in that file.
202-
- `note 6` A new compatibility feature `c_vect_without_provisional` has been
203-
created. In files without a `provisional c_vect;` declaration, the `vect`
199+
- `note 6` A new provisional feature `simics_util_vect` has been added. When
200+
`provisional simics_util_vect;` appears in the top of a DML file, DMLC will
201+
no longer print warnings when the `vect` syntax is used in that file.
202+
- `note 6` A new compatibility feature `simics_util_vect_without_provisional` has been
203+
created. In files without a `provisional simics_util_vect;` declaration, the `vect`
204204
syntax is only permitted when this feature is enabled. his feature will be
205205
disabled in Simics API versions \> 7, where all uses of `vect` instead require
206206
explicit `provisional` declarations.

test/1.4/legacy/T_c_vect_without_provisional_disabled.dml T_experimental_vect_disabled.dml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ dml 1.4;
88
device test;
99

1010
/// DMLC-FLAG --simics-api=7
11-
/// DMLC-FLAG --no-compat=c_vect_without_provisional
12-
/// ERROR ECVECT
11+
/// DMLC-FLAG --no-compat=experimental_vect
12+
/// ERROR EOLDVECT
1313
typedef int vect x;

lib/1.2/dml-builtins.dml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
dml 1.2;
77

8-
provisional c_vect;
8+
provisional simics_util_vect;
99
bitorder le;
1010

1111
loggroup Register_Read;
@@ -223,7 +223,7 @@ template device {
223223
parameter _compat_dml12_goto auto;
224224
parameter _compat_dml12_misc auto;
225225
parameter _compat_dml12_int auto;
226-
parameter _compat_c_vect_without_provisional auto;
226+
parameter _compat_experimental_vect auto;
227227
parameter _compat_warning_statement auto;
228228

229229
// automatic parameters

lib/1.4/dml-builtins.dml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
dml 1.4;
77

8-
provisional c_vect;
8+
provisional simics_util_vect;
99
bitorder le;
1010

1111
loggroup Register_Read;
@@ -625,7 +625,7 @@ template device {
625625
param _compat_dml12_goto auto;
626626
param _compat_dml12_misc auto;
627627
param _compat_dml12_int auto;
628-
param _compat_c_vect_without_provisional auto;
628+
param _compat_experimental_vect auto;
629629
param _compat_warning_statement auto;
630630

631631
// automatic parameters

py/dml/compat.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -377,20 +377,20 @@ class dml12_int(CompatFeature):
377377

378378

379379
@feature
380-
class c_vect_without_provisional(CompatFeature):
381-
'''<a id="c_vect_without_provisional"/> This compat feature
380+
class experimental_vect(CompatFeature):
381+
'''<a id="experimental_vect"/> This compat feature
382382
controls how DMLC reacts to uses of the `vect` syntax in files
383-
where the [`c_vect` provisional feature](provisional-auto.html#c_vect)
383+
where the [`simics_util_vect` provisional feature](provisional-auto.html#simics_util_vect)
384384
is not enabled.
385385
386-
When the `c_vect_without_provisional` compatibility feature is
386+
When the `experimental_vect` compatibility feature is
387387
enabled, such uses are permitted, and give a `WEXPERIMENTAL`
388388
warning in DML 1.4 (but no warning in DML 1.2). When
389-
`c_vect_without_provisional` is disabled, DMLC forbids the `vect`
389+
`experimental_vect` is disabled, DMLC forbids the `vect`
390390
syntax.
391391
392392
'''
393-
short = "Permit vect syntax without 'provisional c_vect'"
393+
short = "Permit vect syntax without 'provisional simics_util_vect'"
394394
last_api_version = api_7
395395

396396

py/dml/dmlparse.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1331,15 +1331,15 @@ def cdecl2_ptr(t):
13311331
@prod
13321332
def cdecl2_vect(t):
13331333
'cdecl2 : VECT cdecl2'
1334-
if provisional.c_vect not in t.parser.file_info.provisional:
1335-
if compat.c_vect_without_provisional in dml.globals.enabled_compat:
1334+
if provisional.simics_util_vect not in t.parser.file_info.provisional:
1335+
if compat.experimental_vect in dml.globals.enabled_compat:
13361336
vsite = site(t)
13371337
if vsite.dml_version() != (1, 2):
13381338
# defensively suppress warning in 1.2, for
13391339
# compatibility
13401340
report(WEXPERIMENTAL(site(t), 'vect types'))
13411341
else:
1342-
report(ECVECT(site(t)))
1342+
report(EOLDVECT(site(t)))
13431343
t[0] = ['vect'] + t[2]
13441344

13451345
@prod_dml12

py/dml/messages.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1892,10 +1892,10 @@ def log(self):
18921892
+ self.other_type.describe())
18931893

18941894

1895-
class ECVECT(DMLError):
1896-
"""`vect` types are only permitted if the [`c_vect` provisional
1897-
feature](provisional-auto.html#c_vect) is enabled."""
1898-
fmt = "declaration of vect type without c_vect provisional"
1895+
class EOLDVECT(DMLError):
1896+
"""`vect` types are only permitted if the [`simics_util_vect` provisional
1897+
feature](provisional-auto.html#simics_util_vect) is enabled."""
1898+
fmt = "declaration of vect type without simics_util_vect provisional"
18991899

19001900
#
19011901
# WARNINGS (keep these as few as possible)

py/dml/provisional.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ class explicit_param_decls(ProvisionalFeature):
7575

7676

7777
@feature
78-
class c_vect(ProvisionalFeature):
79-
'''<a id="c_vect"/>
78+
class simics_util_vect(ProvisionalFeature):
79+
'''<a id="simics_util_vect"/>
8080
This feature enables the `vect` type, based on the
8181
`VECT` macro from the Simics C API (`simics/util/vect.h`).
8282
8383
This is a simple wrapping that behaves inconsistently in many
8484
ways, and we plan to eventually introduce a cleaner mechanism for
85-
vectors; the `c_vect` is supported as an interim solution until we
85+
vectors; the `simics_util_vect` is supported as an interim solution until we
8686
have that in place.
8787
8888
The syntax is `BASETYPE vect`, e.g. `typedef int vect int_vect_t;`
@@ -128,12 +128,12 @@ class c_vect(ProvisionalFeature):
128128
}
129129
```
130130
131-
Enabling the `c_vect` feature in a file only affects
131+
Enabling the `simics_util_vect` feature in a file only affects
132132
the `vect` declarations in that file.
133133
134-
When the `c_vect` feature is disabled, usage of `vect` is an
135-
error unless the [`c_vect_without_provisional` compatibility
136-
feature](deprecations-auto.html#c_vect_without_provisional) is enabled.
134+
When the `simics_util_vect` feature is disabled, usage of `vect` is an
135+
error unless the [`experimental_vect` compatibility
136+
feature](deprecations-auto.html#experimental_vect) is enabled.
137137
'''
138138
short = "Allow vect syntax based on the VECT macro"
139139
stable = True

test/1.2/errors/T_EIDENT.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.2;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.2/errors/T_ECVECT.dml test/1.2/errors/T_EOLDVECT.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ device test;
1414
// No complaint, even though the c_vect provisional is not enabled.
1515
// This gives a warning in DML 1.4, see
1616
// 1.4/legacy/c_vect_without_provisional_enabled,
17-
// and an ECVECT with c_vect_without_provisional disabled,
17+
// and an EOLDVECT with c_vect_without_provisional disabled,
1818
// see 1.4/legacy/c_vect_without_provisional_disabled.
1919
typedef int vect int_vect_t;

test/1.2/errors/T_ETREC.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.2;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99
import "testing.dml";

test/1.2/errors/T_strict.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.2;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
/* <add id="dml changes strict"/> */
99

test/1.2/internal/T_vect.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.2;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.2/internal/T_vect_select.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.2;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.2/statements/T_if_ambiguity.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.2;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.4/errors/T_ECAST.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.4;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.4/errors/T_EEXTERNINCOMP.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.4;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.4/errors/T_ESERIALIZE.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.4;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.4/errors/T_EVOID.dml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
*/
55
dml 1.4;
6-
provisional c_vect;
6+
provisional simics_util_vect;
77

88
device test;
99

test/1.4/provisional/T_c_vect.dml test/1.4/provisional/T_simics_util_vect.dml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
dml 1.4;
77

8-
provisional c_vect;
8+
provisional simics_util_vect;
99

1010
device test;
1111

1212
/// COMPILE-ONLY
1313

14-
// Error reporting tested by 1.4/legacy/c_vect_without_provisional_*.dml
14+
// Error reporting tested by 1.4/legacy/experimental_vect_*.dml
1515

16-
/// DMLC-FLAG --no-compat=c_vect_without_provisional
16+
/// DMLC-FLAG --no-compat=experimental_vect
1717
// no warning
1818
typedef int vect x;

0 commit comments

Comments
 (0)