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

Function NewAdd

ir/constant/expr_binary.go:29–34  ·  view source on GitHub ↗

NewAdd returns a new add expression based on the given operands.

(x, y Constant)

Source from the content-addressed store, hash-verified

27
28// NewAdd returns a new add expression based on the given operands.
29func NewAdd(x, y Constant) *ExprAdd {
30 e := &ExprAdd{X: x, Y: y}
31 // Compute type.
32 e.Type()
33 return e
34}
35
36// String returns the LLVM syntax representation of the constant expression as a
37// type-value pair.

Callers 1

irAddExprMethod · 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…