github.com/llir/llvm@v0.3.6/ir/module_ifunc.go (about)

     1  package ir
     2  
     3  import "github.com/llir/llvm/ir/constant"
     4  
     5  // NewIFunc appends a new indirect function to the module based on the given
     6  // IFunc name and resolver.
     7  func (m *Module) NewIFunc(name string, resolver constant.Constant) *IFunc {
     8  	ifunc := NewIFunc(name, resolver)
     9  	m.IFuncs = append(m.IFuncs, ifunc)
    10  	return ifunc
    11  }