summaryrefslogtreecommitdiff
path: root/utils/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-06 20:19:52 +0000
committerChris Lattner <sabre@nondot.org>2006-04-06 20:19:52 +0000
commit52793e2c41b2c073e1175b9292aba48d0c23019e (patch)
tree903c12d0b7c19b05ecada09185801a33e88de26c /utils/TableGen
parentc0d2021f0a720624fd44782424f18a73b321c948 (diff)
downloadllvm-52793e2c41b2c073e1175b9292aba48d0c23019e.tar.gz
llvm-52793e2c41b2c073e1175b9292aba48d0c23019e.tar.bz2
llvm-52793e2c41b2c073e1175b9292aba48d0c23019e.tar.xz
rename a method, to avoid confusion with llvm intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 5d1689c3fd..37fc53c0d3 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/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);