File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,9 @@ struct KnownBits {
396
396
KnownBits reverseBits () {
397
397
return KnownBits (Zero.reverseBits (), One.reverseBits ());
398
398
}
399
+
400
+ void print (raw_ostream &OS) const ;
401
+ void dump () const ;
399
402
};
400
403
401
404
inline KnownBits operator &(KnownBits LHS, const KnownBits &RHS) {
Original file line number Diff line number Diff line change 12
12
// ===----------------------------------------------------------------------===//
13
13
14
14
#include " llvm/Support/KnownBits.h"
15
+ #include " llvm/Support/Debug.h"
16
+ #include " llvm/Support/raw_ostream.h"
15
17
#include < cassert>
16
18
17
19
using namespace llvm ;
@@ -601,3 +603,11 @@ KnownBits &KnownBits::operator^=(const KnownBits &RHS) {
601
603
Zero = std::move (Z);
602
604
return *this ;
603
605
}
606
+
607
+ void KnownBits::print (raw_ostream &OS) const {
608
+ OS << " {Zero=" << Zero << " , One=" << One << " }" ;
609
+ }
610
+ void KnownBits::dump () const {
611
+ print (dbgs ());
612
+ dbgs () << " \n " ;
613
+ }
You can’t perform that action at this time.
0 commit comments