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

Struct ExprAdd

ir/constant/expr_binary.go:16–26  ·  view source on GitHub ↗

--- [ Binary expressions ] -------------------------------------------------- ~~~ [ add ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ExprAdd is an LLVM IR add expression.

Source from the content-addressed store, hash-verified

14
15// ExprAdd is an LLVM IR add expression.
16type ExprAdd struct {
17 // Operands.
18 X, Y Constant // integer scalar or vector constants
19
20 // extra.
21
22 // Type of result produced by the constant expression.
23 Typ types.Type
24 // (optional) Integer overflow flags.
25 OverflowFlags []enum.OverflowFlag
26}
27
28// NewAdd returns a new add expression based on the given operands.
29func NewAdd(x, y Constant) *ExprAdd {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected