llvm-svn: 96199
This commit is contained in:
Chris Lattner 2010-02-14 22:33:49 +00:00
parent 53c39ba3c1
commit 450d50467c
2 changed files with 4 additions and 4 deletions

View File

@ -848,7 +848,7 @@ TreePatternNode::getComplexPatternInfo(const CodeGenDAGPatterns &CGP) const {
/// NodeHasProperty - Return true if this node has the specified property.
bool TreePatternNode::NodeHasProperty(SDNP Property,
CodeGenDAGPatterns &CGP) const {
const CodeGenDAGPatterns &CGP) const {
if (isLeaf()) {
if (const ComplexPattern *CP = getComplexPatternInfo(CGP))
return CP->hasProperty(Property);
@ -867,7 +867,7 @@ bool TreePatternNode::NodeHasProperty(SDNP Property,
/// TreeHasProperty - Return true if any node in this tree has the specified
/// property.
bool TreePatternNode::TreeHasProperty(SDNP Property,
CodeGenDAGPatterns &CGP) const {
const CodeGenDAGPatterns &CGP) const {
if (NodeHasProperty(Property, CGP))
return true;
for (unsigned i = 0, e = getNumChildren(); i != e; ++i)

View File

@ -243,11 +243,11 @@ public:
getComplexPatternInfo(const CodeGenDAGPatterns &CGP) const;
/// NodeHasProperty - Return true if this node has the specified property.
bool NodeHasProperty(SDNP Property, CodeGenDAGPatterns &CGP) const;
bool NodeHasProperty(SDNP Property, const CodeGenDAGPatterns &CGP) const;
/// TreeHasProperty - Return true if any node in this tree has the specified
/// property.
bool TreeHasProperty(SDNP Property, CodeGenDAGPatterns &CGP) const;
bool TreeHasProperty(SDNP Property, const CodeGenDAGPatterns &CGP) const;
/// isCommutativeIntrinsic - Return true if the node is an intrinsic which is
/// marked isCommutative.