@@ -1854,14 +1854,14 @@ void InsEncode::output(FILE *fp) {
1854
1854
fprintf (fp," InsEncode: " );
1855
1855
_encoding.reset ();
1856
1856
1857
- while ( (encoding = (NameAndList*)_encoding.iter ()) != 0 ) {
1857
+ while ( (encoding = (NameAndList*)_encoding.iter ()) != nullptr ) {
1858
1858
// Output the encoding being used
1859
1859
fprintf (fp," %s(" , encoding->name () );
1860
1860
1861
1861
// Output its parameter list, if any
1862
1862
bool first_param = true ;
1863
1863
encoding->reset ();
1864
- while ( (parameter = encoding->iter ()) != 0 ) {
1864
+ while ( (parameter = encoding->iter ()) != nullptr ) {
1865
1865
// Output the ',' between parameters
1866
1866
if ( ! first_param ) fprintf (fp," , " );
1867
1867
first_param = false ;
@@ -3305,7 +3305,7 @@ void ComponentList::output(FILE *fp) {
3305
3305
MatchNode::MatchNode (ArchDesc &ad, const char *result, const char *mexpr,
3306
3306
const char *opType, MatchNode *lChild, MatchNode *rChild)
3307
3307
: _AD(ad), _result(result), _name(mexpr), _opType(opType),
3308
- _lChild(lChild), _rChild(rChild), _internalop(0 ), _numleaves(0 ),
3308
+ _lChild(lChild), _rChild(rChild), _internalop(nullptr ), _numleaves(0 ),
3309
3309
_commutative_id(0 ) {
3310
3310
_numleaves = (lChild ? lChild->_numleaves : 0 )
3311
3311
+ (rChild ? rChild->_numleaves : 0 );
@@ -3314,14 +3314,14 @@ MatchNode::MatchNode(ArchDesc &ad, const char *result, const char *mexpr,
3314
3314
MatchNode::MatchNode (ArchDesc &ad, MatchNode& mnode)
3315
3315
: _AD(ad), _result(mnode._result), _name(mnode._name),
3316
3316
_opType(mnode._opType), _lChild(mnode._lChild), _rChild(mnode._rChild),
3317
- _internalop(0 ), _numleaves(mnode._numleaves),
3317
+ _internalop(nullptr ), _numleaves(mnode._numleaves),
3318
3318
_commutative_id(mnode._commutative_id) {
3319
3319
}
3320
3320
3321
3321
MatchNode::MatchNode (ArchDesc &ad, MatchNode& mnode, int clone)
3322
3322
: _AD(ad), _result(mnode._result), _name(mnode._name),
3323
3323
_opType(mnode._opType),
3324
- _internalop(0 ), _numleaves(mnode._numleaves),
3324
+ _internalop(nullptr ), _numleaves(mnode._numleaves),
3325
3325
_commutative_id(mnode._commutative_id) {
3326
3326
if (mnode._lChild ) {
3327
3327
_lChild = new MatchNode (ad, *mnode._lChild , clone);
@@ -3624,7 +3624,7 @@ void MatchNode::dump() {
3624
3624
}
3625
3625
3626
3626
void MatchNode::output (FILE *fp) {
3627
- if (_lChild==0 && _rChild==0 ) {
3627
+ if (_lChild==nullptr && _rChild==nullptr ) {
3628
3628
fprintf (fp," %s" ,_name); // operand
3629
3629
}
3630
3630
else {
0 commit comments