llvm: github.com/llir/llvm/ir/value Index | Files

package value

import "github.com/llir/llvm/ir/value"

Package value provides a definition of LLVM IR values.


Package Files


type Named Uses

type Named interface {
    // Name returns the name of the value.
    Name() string
    // SetName sets the name of the value.
    SetName(name string)

Named is a named LLVM IR value.

A Named value has one of the following underlying types.

*ir.Global            // https://godoc.org/github.com/llir/llvm/ir#Global
*ir.Func              // https://godoc.org/github.com/llir/llvm/ir#Func
*ir.Param             // https://godoc.org/github.com/llir/llvm/ir#Param
*ir.Block             // https://godoc.org/github.com/llir/llvm/ir#Block
TODO: add named metadata value?
ir.Instruction        // https://godoc.org/github.com/llir/llvm/ir#Instruction (except store and fence)
*ir.TermInvoke        // https://godoc.org/github.com/llir/llvm/ir#TermInvoke
*ir.TermCatchSwitch   // https://godoc.org/github.com/llir/llvm/ir#TermCatchSwitch (token result used by catchpad)

type Value Uses

type Value interface {
    // String returns the LLVM syntax representation of the value as a type-value
    // pair.
    // Type returns the type of the value.
    Type() types.Type
    // Ident returns the identifier associated with the value.
    Ident() string

Value is an LLVM IR value, which may be used as an operand of instructions and terminators.

A Value has one of the following underlying types.

constant.Constant   // https://godoc.org/github.com/llir/llvm/ir/constant#Constant
value.Named         // https://godoc.org/github.com/llir/llvm/ir/value#Named
TODO: add literal metadata value?

Package value imports 2 packages (graph) and is imported by 14 packages. Updated 2018-12-31. Refresh now. Tools for package owners.