return true;
}
- /// IsFoldableBy - Returns true if the specific operand node N of U can be
+ /// CanBeFoldedBy - Returns true if the specific operand node N of U can be
/// folded during instruction selection?
- virtual bool IsFoldableBy(SDNode *N, SDNode *U) { return true; }
+ virtual bool CanBeFoldedBy(SDNode *N, SDNode *U) { return true; }
/// CreateTargetHazardRecognizer - Return a newly allocated hazard recognizer
/// to use for this target when scheduling the DAG.
virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF);
- virtual bool IsFoldableBy(SDNode *N, SDNode *U);
+ virtual bool CanBeFoldedBy(SDNode *N, SDNode *U);
// Include the pieces autogenerated from the target description.
#include "X86GenDAGISel.inc"
};
}
-bool X86DAGToDAGISel::IsFoldableBy(SDNode *N, SDNode *U) {
+bool X86DAGToDAGISel::CanBeFoldedBy(SDNode *N, SDNode *U) {
// Is it already folded by SelectAddr / SelectLEAAddr?
if (isUnfoldable(N))
return false;
if (N.getOpcode() == ISD::LOAD &&
N.hasOneUse() &&
!CodeGenMap.count(N.getValue(0)) &&
- !IsFoldableBy(N.Val, P.Val))
+ !CanBeFoldedBy(N.Val, P.Val))
return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp);
return false;
}
PInfo.hasProperty(SDNodeInfo::SDNPHasChain) ||
PInfo.hasProperty(SDNodeInfo::SDNPInFlag) ||
PInfo.hasProperty(SDNodeInfo::SDNPOptInFlag))
- emitCheck("IsFoldableBy(" + RootName + ".Val, " + ParentName +
+ emitCheck("CanBeFoldedBy(" + RootName + ".Val, " + ParentName +
".Val)");
}
}