diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2020-02-25 15:08:39 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2021-04-02 12:56:19 -0700 |
commit | 062780cd80229403283fdb9f9e6a07439f5f1c3a (patch) | |
tree | ac4420fde711c1862620a9c49ec17927716a18a9 | |
parent | ecb5ff566038c6fcd641003e02c1a9b31c8b0b52 (diff) |
intel/cfg: Document bblock_t::num
So that the next person doesn't hope it means "number of instructions,"
then have to go figure it out.
-rw-r--r-- | src/intel/compiler/brw_cfg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_cfg.h b/src/intel/compiler/brw_cfg.h index 591d9b4dae2..6f958d85438 100644 --- a/src/intel/compiler/brw_cfg.h +++ b/src/intel/compiler/brw_cfg.h @@ -118,6 +118,12 @@ struct bblock_t { struct exec_list instructions; struct exec_list parents; struct exec_list children; + + /** + * Unique index of the basic block in the CFG. + * + * Value may change as blocks are added to and removed from the CFG. + */ int num; }; |