diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-18 04:08:07 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-18 04:08:07 +0000 |
commit | 57a865089a7bb9b25013070c5e9f76fda5c7be00 (patch) | |
tree | 6e1212af0ce6784206f8ba0a49da32256a7e4321 /llvm/utils/TableGen/CodeGenDAGPatterns.h | |
parent | 0498b88d4810552fbba36261b76809b18edf0ad3 (diff) | |
download | llvm-57a865089a7bb9b25013070c5e9f76fda5c7be00.zip llvm-57a865089a7bb9b25013070c5e9f76fda5c7be00.tar.gz llvm-57a865089a7bb9b25013070c5e9f76fda5c7be00.tar.bz2 |
Extract a method.
This computes the type of an instruction operand or result based on the
records in the instruction's ins and outs lists.
llvm-svn: 177244
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index f949b52..6190798 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h @@ -463,6 +463,11 @@ public: // Higher level manipulation routines. 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 { |