@@ -112,7 +112,7 @@ public struct Constant<Repr: ConstantRepresentation>: IRValue {
112
112
/// behavior of the resulting constant value.
113
113
///
114
114
/// - returns: A constant value representing the negation of the given constant.
115
- public static func neg ( _ lhs: Constant < Signed > , overflowBehavior: OverflowBehavior = . default) -> Constant < Signed > {
115
+ public static func negate ( _ lhs: Constant < Signed > , overflowBehavior: OverflowBehavior = . default) -> Constant < Signed > {
116
116
precondition ( lhs. repr == . signed, " Invalid representation " )
117
117
118
118
let lhsVal = lhs. asLLVM ( )
@@ -181,7 +181,7 @@ public struct Constant<Repr: ConstantRepresentation>: IRValue {
181
181
/// behavior of the resulting constant value.
182
182
///
183
183
/// - returns: A constant value representing the difference of the two operands.
184
- public static func sub ( _ lhs: Constant , _ rhs: Constant , overflowBehavior: OverflowBehavior = . default) -> Constant {
184
+ public static func subtract ( _ lhs: Constant , _ rhs: Constant , overflowBehavior: OverflowBehavior = . default) -> Constant {
185
185
precondition ( lhs. repr == rhs. repr, " Mixed-representation constant operations are disallowed " )
186
186
187
187
let lhsVal = lhs. asLLVM ( )
@@ -228,7 +228,7 @@ public struct Constant<Repr: ConstantRepresentation>: IRValue {
228
228
/// behavior of the resulting constant value.
229
229
///
230
230
/// - returns: A constant value representing the product of the two operands.
231
- public static func mul ( _ lhs: Constant , _ rhs: Constant , overflowBehavior: OverflowBehavior = . default) -> Constant {
231
+ public static func multiply ( _ lhs: Constant , _ rhs: Constant , overflowBehavior: OverflowBehavior = . default) -> Constant {
232
232
precondition ( lhs. repr == rhs. repr, " Mixed-representation constant operations are disallowed " )
233
233
234
234
let lhsVal = lhs. asLLVM ( )
0 commit comments