Skip to content

Commit c3d8c85

Browse files
committed
Spell things out
1 parent d96dd36 commit c3d8c85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/LLVM/Constant.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public struct Constant<Repr: ConstantRepresentation>: IRValue {
112112
/// behavior of the resulting constant value.
113113
///
114114
/// - 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> {
116116
precondition(lhs.repr == .signed, "Invalid representation")
117117

118118
let lhsVal = lhs.asLLVM()
@@ -181,7 +181,7 @@ public struct Constant<Repr: ConstantRepresentation>: IRValue {
181181
/// behavior of the resulting constant value.
182182
///
183183
/// - 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 {
185185
precondition(lhs.repr == rhs.repr, "Mixed-representation constant operations are disallowed")
186186

187187
let lhsVal = lhs.asLLVM()
@@ -228,7 +228,7 @@ public struct Constant<Repr: ConstantRepresentation>: IRValue {
228228
/// behavior of the resulting constant value.
229229
///
230230
/// - 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 {
232232
precondition(lhs.repr == rhs.repr, "Mixed-representation constant operations are disallowed")
233233

234234
let lhsVal = lhs.asLLVM()

0 commit comments

Comments
 (0)