projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a test for llvm-ar's 'd' operation.
[oota-llvm.git]
/
utils
/
TableGen
/
CodeGenDAGPatterns.h
diff --git
a/utils/TableGen/CodeGenDAGPatterns.h
b/utils/TableGen/CodeGenDAGPatterns.h
index f949b528b9386569774d997970b297f54c99de31..7c2fa367410860c569d9a9dd8b29e47fa20d6c2f 100644
(file)
--- a/
utils/TableGen/CodeGenDAGPatterns.h
+++ b/
utils/TableGen/CodeGenDAGPatterns.h
@@
-334,6
+334,7
@@
public:
}
~TreePatternNode();
}
~TreePatternNode();
+ bool hasName() const { return !Name.empty(); }
const std::string &getName() const { return Name; }
void setName(StringRef N) { Name.assign(N.begin(), N.end()); }
const std::string &getName() const { return Name; }
void setName(StringRef N) { Name.assign(N.begin(), N.end()); }
@@
-463,6
+464,11
@@
public: // Higher level manipulation routines.
return Types[ResNo].MergeInTypeInfo(EEVT::TypeSet(InTy, TP), TP);
}
return Types[ResNo].MergeInTypeInfo(EEVT::TypeSet(InTy, TP), TP);
}
+ // Update node type with types inferred from an instruction operand or result
+ // def from the ins/outs lists.
+ // Return true if the type changed.
+ bool UpdateNodeTypeFromInst(unsigned ResNo, Record *Operand, TreePattern &TP);
+
/// ContainsUnresolvedType - Return true if this tree contains any
/// unresolved types.
bool ContainsUnresolvedType() const {
/// ContainsUnresolvedType - Return true if this tree contains any
/// unresolved types.
bool ContainsUnresolvedType() const {