@@ -3080,53 +3080,53 @@ namespace ISD {
3080
3080
3081
3081
// / Returns true if the specified node is a non-extending and unindexed load.
3082
3082
inline bool isNormalLoad (const SDNode *N) {
3083
- const LoadSDNode *Ld = dyn_cast<LoadSDNode>(N);
3083
+ auto *Ld = dyn_cast<LoadSDNode>(N);
3084
3084
return Ld && Ld->getExtensionType () == ISD::NON_EXTLOAD &&
3085
- Ld->getAddressingMode () == ISD::UNINDEXED;
3085
+ Ld->getAddressingMode () == ISD::UNINDEXED;
3086
3086
}
3087
3087
3088
3088
// / Returns true if the specified node is a non-extending load.
3089
3089
inline bool isNON_EXTLoad (const SDNode *N) {
3090
- return isa <LoadSDNode>(N) &&
3091
- cast<LoadSDNode>(N) ->getExtensionType () == ISD::NON_EXTLOAD;
3090
+ auto *Ld = dyn_cast <LoadSDNode>(N);
3091
+ return Ld && Ld ->getExtensionType () == ISD::NON_EXTLOAD;
3092
3092
}
3093
3093
3094
3094
// / Returns true if the specified node is a EXTLOAD.
3095
3095
inline bool isEXTLoad (const SDNode *N) {
3096
- return isa <LoadSDNode>(N) &&
3097
- cast<LoadSDNode>(N) ->getExtensionType () == ISD::EXTLOAD;
3096
+ auto *Ld = dyn_cast <LoadSDNode>(N);
3097
+ return Ld && Ld ->getExtensionType () == ISD::EXTLOAD;
3098
3098
}
3099
3099
3100
3100
// / Returns true if the specified node is a SEXTLOAD.
3101
3101
inline bool isSEXTLoad (const SDNode *N) {
3102
- return isa <LoadSDNode>(N) &&
3103
- cast<LoadSDNode>(N) ->getExtensionType () == ISD::SEXTLOAD;
3102
+ auto *Ld = dyn_cast <LoadSDNode>(N);
3103
+ return Ld && Ld ->getExtensionType () == ISD::SEXTLOAD;
3104
3104
}
3105
3105
3106
3106
// / Returns true if the specified node is a ZEXTLOAD.
3107
3107
inline bool isZEXTLoad (const SDNode *N) {
3108
- return isa <LoadSDNode>(N) &&
3109
- cast<LoadSDNode>(N) ->getExtensionType () == ISD::ZEXTLOAD;
3108
+ auto *Ld = dyn_cast <LoadSDNode>(N);
3109
+ return Ld && Ld ->getExtensionType () == ISD::ZEXTLOAD;
3110
3110
}
3111
3111
3112
3112
// / Returns true if the specified node is an unindexed load.
3113
3113
inline bool isUNINDEXEDLoad (const SDNode *N) {
3114
- return isa <LoadSDNode>(N) &&
3115
- cast<LoadSDNode>(N) ->getAddressingMode () == ISD::UNINDEXED;
3114
+ auto *Ld = dyn_cast <LoadSDNode>(N);
3115
+ return Ld && Ld ->getAddressingMode () == ISD::UNINDEXED;
3116
3116
}
3117
3117
3118
3118
// / Returns true if the specified node is a non-truncating
3119
3119
// / and unindexed store.
3120
3120
inline bool isNormalStore (const SDNode *N) {
3121
- const StoreSDNode *St = dyn_cast<StoreSDNode>(N);
3121
+ auto *St = dyn_cast<StoreSDNode>(N);
3122
3122
return St && !St->isTruncatingStore () &&
3123
- St->getAddressingMode () == ISD::UNINDEXED;
3123
+ St->getAddressingMode () == ISD::UNINDEXED;
3124
3124
}
3125
3125
3126
3126
// / Returns true if the specified node is an unindexed store.
3127
3127
inline bool isUNINDEXEDStore (const SDNode *N) {
3128
- return isa <StoreSDNode>(N) &&
3129
- cast<StoreSDNode>(N) ->getAddressingMode () == ISD::UNINDEXED;
3128
+ auto *St = dyn_cast <StoreSDNode>(N);
3129
+ return St && St ->getAddressingMode () == ISD::UNINDEXED;
3130
3130
}
3131
3131
3132
3132
// / Attempt to match a unary predicate against a scalar/splat constant or
0 commit comments