diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-01-02 05:51:48 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-01-02 05:51:48 +0100 |
commit | 43a504a9722b739ab33393ecb2d1abc6962cc52f (patch) | |
tree | 5fa83a8745b239cbb4b8f7c5d06079db681f67f0 /src/vhdl/iirs_utils.ads | |
parent | 0f62d8b9acc29a4726a17c72c315a0a94ec18688 (diff) | |
download | ghdl-43a504a9722b739ab33393ecb2d1abc6962cc52f.tar.gz ghdl-43a504a9722b739ab33393ecb2d1abc6962cc52f.tar.bz2 ghdl-43a504a9722b739ab33393ecb2d1abc6962cc52f.zip |
iirs_utils: reimplement Are_Bounds_Locally_Static.
Diffstat (limited to 'src/vhdl/iirs_utils.ads')
-rw-r--r-- | src/vhdl/iirs_utils.ads | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vhdl/iirs_utils.ads b/src/vhdl/iirs_utils.ads index 771172fca..fbe4c1127 100644 --- a/src/vhdl/iirs_utils.ads +++ b/src/vhdl/iirs_utils.ads @@ -223,8 +223,12 @@ package Iirs_Utils is -- Number of dimensions (1..n) for ARRAY_TYPE. function Get_Nbr_Dimensions (Array_Type : Iir) return Natural; - -- Return True iff the all bounds of ARRAY_TYPE are locally static. - function Are_Bounds_Locally_Static (Array_Type : Iir) return Boolean; + -- Return True iff the all indexes of ARRAY_TYPE are locally static. + function Are_Array_Indexes_Locally_Static (Array_Type : Iir) return Boolean; + + -- Return true if array/record bounds are locally static. Only fully + -- constrained records or arrays are allowed. + function Are_Bounds_Locally_Static (Def : Iir) return Boolean; -- Return the type or subtype definition of the SUBTYP type mark. function Get_Denoted_Type_Mark (Subtyp : Iir) return Iir; |