gcc/ada/
* sem_util.ads, sem_util.adb (Is_Attribute_Loop_Entry): New
function for GNATProve.
return Is_Atomic_Object (N) or else Is_Volatile_Full_Access_Object (N);
end Is_Atomic_Or_VFA_Object;
+ -----------------------------
+ -- Is_Attribute_Loop_Entry --
+ -----------------------------
+
+ function Is_Attribute_Loop_Entry (N : Node_Id) return Boolean is
+ begin
+ return Nkind (N) = N_Attribute_Reference
+ and then Attribute_Name (N) = Name_Loop_Entry;
+ end Is_Attribute_Loop_Entry;
+
----------------------
-- Is_Attribute_Old --
----------------------
-- Determine whether arbitrary node N denotes a reference to an object
-- which is either atomic or Volatile_Full_Access.
+ function Is_Attribute_Loop_Entry (N : Node_Id) return Boolean;
+ -- Determine whether node N denotes attribute 'Loop_Entry
+
function Is_Attribute_Old (N : Node_Id) return Boolean;
-- Determine whether node N denotes attribute 'Old