Class: Fisk::CFG::BasicBlock
- Inherits:
-
Struct
- Object
- Struct
- Fisk::CFG::BasicBlock
- Defined in:
- lib/fisk/basic_block.rb
Instance Attribute Summary collapse
-
#def ⇒ Object
Returns the value of attribute def.
-
#end_point ⇒ Object
Returns the value of attribute end_point.
-
#fall ⇒ Object
Returns the value of attribute fall.
-
#in ⇒ Object
Returns the value of attribute in.
-
#insns ⇒ Object
Returns the value of attribute insns.
-
#jump ⇒ Object
Returns the value of attribute jump.
-
#name ⇒ Object
Returns the value of attribute name.
-
#out ⇒ Object
Returns the value of attribute out.
-
#pred ⇒ Object
Returns the value of attribute pred.
-
#start_point ⇒ Object
Returns the value of attribute start_point.
-
#use ⇒ Object
Returns the value of attribute use.
Instance Method Summary collapse
Instance Attribute Details
#def ⇒ Object
Returns the value of attribute def
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def def @def end |
#end_point ⇒ Object
Returns the value of attribute end_point
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def end_point @end_point end |
#fall ⇒ Object
Returns the value of attribute fall
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def fall @fall end |
#in ⇒ Object
Returns the value of attribute in
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def in @in end |
#insns ⇒ Object
Returns the value of attribute insns
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def insns @insns end |
#jump ⇒ Object
Returns the value of attribute jump
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def jump @jump end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def name @name end |
#out ⇒ Object
Returns the value of attribute out
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def out @out end |
#pred ⇒ Object
Returns the value of attribute pred
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def pred @pred end |
#start_point ⇒ Object
Returns the value of attribute start_point
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def start_point @start_point end |
#use ⇒ Object
Returns the value of attribute use
3 4 5 |
# File 'lib/fisk/basic_block.rb', line 3 def use @use end |
Instance Method Details
#jump? ⇒ Boolean
4 5 6 |
# File 'lib/fisk/basic_block.rb', line 4 def jump? insns.last.jump? end |
#jump_name ⇒ Object
8 9 10 |
# File 'lib/fisk/basic_block.rb', line 8 def jump_name insns.last.target end |
#live ⇒ Object
19 |
# File 'lib/fisk/basic_block.rb', line 19 def live; self.def | self.use | self.out; end |
#succ ⇒ Object
12 13 14 15 16 17 |
# File 'lib/fisk/basic_block.rb', line 12 def succ list = [] list << fall if fall list << jump if jump list end |