We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Instruction.isUsing
1 parent 502c0eb commit b4010e6Copy full SHA for b4010e6
SwiftCompilerSources/Sources/SIL/Operand.swift
@@ -191,6 +191,12 @@ extension Value {
191
public var users: LazyMapSequence<UseList, Instruction> { uses.users }
192
}
193
194
+extension Instruction {
195
+ public func isUsing(_ value: Value) -> Bool {
196
+ return operands.contains { $0.value == value }
197
+ }
198
+}
199
+
200
extension Operand {
201
/// Return true if this operation will store a full value into this
202
/// operand's address.
0 commit comments