MCPcopy Create free account
hub / github.com/llir/llvm / NewInsertElement

Function NewInsertElement

ir/constant/expr_vector.go:79–84  ·  view source on GitHub ↗

NewInsertElement returns a new insertelement expression based on the given vector, element and element index.

(x, elem, index Constant)

Source from the content-addressed store, hash-verified

77// NewInsertElement returns a new insertelement expression based on the given
78// vector, element and element index.
79func NewInsertElement(x, elem, index Constant) *ExprInsertElement {
80 e := &ExprInsertElement{X: x, Elem: elem, Index: index}
81 // Compute type.
82 e.Type()
83 return e
84}
85
86// String returns the LLVM syntax representation of the constant expression as a
87// type-value pair.

Callers 1

irInsertElementExprMethod · 0.92

Calls 1

TypeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…