NewAdd returns a new add expression based on the given operands.
(x, y Constant)
| 27 | |
| 28 | // NewAdd returns a new add expression based on the given operands. |
| 29 | func 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. |