Skip to content

Commit 64fd2ce

Browse files
committed
Improve hir_effect.inc.rs documentation
1 parent 9239d3d commit 64fd2ce

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

zjit/src/hir_effect/gen_hir_effect.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,15 @@ def to_graphviz effect, f
8585

8686
# ===== Finished generating the DAG; write Rust code =====
8787

88-
puts "// This file is @generated by src/hir/gen_hir_effect.rb."
88+
puts "// This file is @generated by src/hir_effect/gen_hir_effect.rb."
89+
puts ""
90+
puts "// The bits module demarcates common bit patterns we'd like to refer to by"
91+
puts "// name, rather than through a series of unions of labeled EffectBits."
92+
puts ""
93+
puts "// effect_types and abstract_heaps modules follow the same pattern and label"
94+
puts "// commonly used values."
95+
puts ""
96+
puts "// Please refer to src/hir_effect/mod.rs for further documentation."
8997
puts "mod bits {"
9098
$bits.keys.sort.map {|effect_name|
9199
subeffects = $bits[effect_name].join(" | ")

zjit/src/hir_effect/hir_effect.inc.rs

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)