diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-04-06 20:19:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-04-06 20:19:52 +0000 |
| commit | 09575a9b0a79d0d25da6d771141f4d25be02d374 (patch) | |
| tree | 18e711a791f0d22844bdcb334ac571bde241d011 /llvm/utils/TableGen | |
| parent | 13f01c8a3da6ff3e9f58cfdc293c7226c2daa537 (diff) | |
| download | bcm5719-llvm-09575a9b0a79d0d25da6d771141f4d25be02d374.tar.gz bcm5719-llvm-09575a9b0a79d0d25da6d771141f4d25be02d374.zip | |
rename a method, to avoid confusion with llvm intrinsics.
llvm-svn: 27455
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index 5d1689c3fdd..37fc53c0d34 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -542,11 +542,11 @@ TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) { return FragTree; } -/// getIntrinsicType - Check to see if the specified record has an intrinsic +/// getImplicitType - Check to see if the specified record has an implicit /// type which should be applied to it. This infer the type of register /// references from the register file information, for example. /// -static std::vector<unsigned char> getIntrinsicType(Record *R, bool NotRegisters, +static std::vector<unsigned char> getImplicitType(Record *R, bool NotRegisters, TreePattern &TP) { // Some common return values std::vector<unsigned char> Unknown(1, MVT::isUnknown); @@ -598,8 +598,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) { if (isLeaf()) { if (DefInit *DI = dynamic_cast<DefInit*>(getLeafValue())) { // If it's a regclass or something else known, include the type. - return UpdateNodeType(getIntrinsicType(DI->getDef(), NotRegisters, TP), - TP); + return UpdateNodeType(getImplicitType(DI->getDef(), NotRegisters, TP),TP); } else if (IntInit *II = dynamic_cast<IntInit*>(getLeafValue())) { // Int inits are always integers. :) bool MadeChange = UpdateNodeType(MVT::isInt, TP); |

