aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-22 08:12:23 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-22 08:50:36 +0200
commitadf0df4cc9f8ac8bdbbe81681e6f3dffcdb76d7f (patch)
tree196207195fed976bc2b02df40fee00cbed29aa26 /src/synth/netlists.ads
parente4bff0d914b25645bed8c28921f00f4f4c4a3293 (diff)
downloadghdl-adf0df4cc9f8ac8bdbbe81681e6f3dffcdb76d7f.tar.gz
ghdl-adf0df4cc9f8ac8bdbbe81681e6f3dffcdb76d7f.tar.bz2
ghdl-adf0df4cc9f8ac8bdbbe81681e6f3dffcdb76d7f.zip
netlists: use dyn_maps package for attributes.
Diffstat (limited to 'src/synth/netlists.ads')
-rw-r--r--src/synth/netlists.ads20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/synth/netlists.ads b/src/synth/netlists.ads
index 703275eef..a425575ab 100644
--- a/src/synth/netlists.ads
+++ b/src/synth/netlists.ads
@@ -20,7 +20,7 @@
with Types; use Types;
with Hash; use Hash;
-with Dyn_Interning;
+with Dyn_Maps;
package Netlists is
-- Netlists.
@@ -379,22 +379,18 @@ private
Chain : Attribute;
end record;
- type Attribute_Map_Element is record
- Inst : Instance;
- First : Attribute;
- end record;
-
function Attribute_Hash (Params : Instance) return Hash_Value_Type;
- function Attribute_Build (Params : Instance) return Attribute_Map_Element;
- function Attribute_Equal (Obj : Attribute_Map_Element; Params : Instance)
- return Boolean;
+ function Attribute_Build (Params : Instance) return Instance;
+ function Attribute_Build_Value (Obj : Instance) return Attribute;
- package Attribute_Maps is new Dyn_Interning
+ package Attribute_Maps is new Dyn_Maps
(Params_Type => Instance,
- Object_Type => Attribute_Map_Element,
+ Object_Type => Instance,
+ Value_Type => Attribute,
Hash => Attribute_Hash,
Build => Attribute_Build,
- Equal => Attribute_Equal);
+ Build_Value => Attribute_Build_Value,
+ Equal => "=");
type Attribute_Map_Acc is access Attribute_Maps.Instance;