diff options
author | Diego Novillo <dnovillo@google.com> | 2009-01-09 16:11:25 -0500 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2009-01-09 16:11:25 -0500 |
commit | e0e10d3a2842b224fd9a69aa7a1b60f4343e24f9 (patch) | |
tree | f925f21e1aa995dd66b9aa4bb1bcb0677dc17518 /gcc/gimple.h | |
parent | c9da2ae8abcb55f016788007ed70f73c39775397 (diff) | |
download | gcc-e0e10d3a2842b224fd9a69aa7a1b60f4343e24f9.zip gcc-e0e10d3a2842b224fd9a69aa7a1b60f4343e24f9.tar.gz gcc-e0e10d3a2842b224fd9a69aa7a1b60f4343e24f9.tar.bz2 |
gimple.h (struct gimple_statement_base): Document the restrictions on its use.
* gimple.h (struct gimple_statement_base)<uid>: Document
the restrictions on its use.
(gimple_uid): Tidy.
(gimple_set_uid): Tidy.
From-SVN: r143233
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 8f8e49b..7760e24 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -297,7 +297,9 @@ struct gimple_statement_base GTY(()) in there. */ unsigned int subcode : 16; - /* UID of this statement. */ + /* UID of this statement. This is used by passes that want to + assign IDs to statements. It must be assigned and used by each + pass. By default it should be assumed to contain garbage. */ unsigned uid; /* [ WORD 2 ] @@ -1204,7 +1206,7 @@ gimple_plf (gimple stmt, enum plf_mask plf) } -/* Set the uid of statement */ +/* Set the UID of statement. */ static inline void gimple_set_uid (gimple g, unsigned uid) @@ -1213,7 +1215,7 @@ gimple_set_uid (gimple g, unsigned uid) } -/* Return the uid of statement */ +/* Return the UID of statement. */ static inline unsigned gimple_uid (const_gimple g) |