File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1050,6 +1050,11 @@ class Operand {
10501050 SILBasicBlock *getParentBlock () const ;
10511051 SILFunction *getParentFunction () const ;
10521052
1053+ LLVM_ATTRIBUTE_DEPRECATED (
1054+ void dump () const LLVM_ATTRIBUTE_USED,
1055+ "Dump the operand's state. Only for use in the debugger!");
1056+ void print (llvm::raw_ostream &os) const ;
1057+
10531058private:
10541059 void removeFromCurrent () {
10551060 if (!Back)
Original file line number Diff line number Diff line change @@ -347,6 +347,16 @@ bool Operand::isConsuming() const {
347347 return get ().getOwnershipKind () != OwnershipKind::None;
348348}
349349
350+ void Operand::dump () const { print (llvm::dbgs ()); }
351+
352+ void Operand::print (llvm::raw_ostream &os) const {
353+ os << " Operand.\n "
354+ " Owner: "
355+ << *Owner << " Value: " << get () << " Operand Number: " << getOperandNumber ()
356+ << ' \n '
357+ << " Is Type Dependent: " << (isTypeDependent () ? " yes" : " no" ) << ' \n ' ;
358+ }
359+
350360// ===----------------------------------------------------------------------===//
351361// OperandConstraint
352362// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments