phirm

package
v0.0.0-...-67b6ef9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package phirm replaces phi nodes with variable defines

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PhiRM

type PhiRM struct {
	*ssa.SSA
	// contains filtered or unexported fields
}

func NewPhiRM

func NewPhiRM(s *ssa.SSA) *PhiRM

func (PhiRM) Add

func (s PhiRM) Add(v int, uses []ssa.ID)

Add removes it from all nested frames and adds it to this frame

func (PhiRM) Apply

func (s PhiRM) Apply()

Apply adds variable declarations

func (PhiRM) Pop

func (s PhiRM) Pop()

func (PhiRM) Push

func (s PhiRM) Push(blk *ssa.Block)

func (*PhiRM) Remove

func (p *PhiRM) Remove()

TODO: Make this work with loops

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL