mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
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
This commit is contained in:
@@ -542,11 +542,11 @@ TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) {
|
|||||||
return FragTree;
|
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
|
/// type which should be applied to it. This infer the type of register
|
||||||
/// references from the register file information, for example.
|
/// 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) {
|
TreePattern &TP) {
|
||||||
// Some common return values
|
// Some common return values
|
||||||
std::vector<unsigned char> Unknown(1, MVT::isUnknown);
|
std::vector<unsigned char> Unknown(1, MVT::isUnknown);
|
||||||
@@ -598,8 +598,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
|
|||||||
if (isLeaf()) {
|
if (isLeaf()) {
|
||||||
if (DefInit *DI = dynamic_cast<DefInit*>(getLeafValue())) {
|
if (DefInit *DI = dynamic_cast<DefInit*>(getLeafValue())) {
|
||||||
// If it's a regclass or something else known, include the type.
|
// If it's a regclass or something else known, include the type.
|
||||||
return UpdateNodeType(getIntrinsicType(DI->getDef(), NotRegisters, TP),
|
return UpdateNodeType(getImplicitType(DI->getDef(), NotRegisters, TP),TP);
|
||||||
TP);
|
|
||||||
} else if (IntInit *II = dynamic_cast<IntInit*>(getLeafValue())) {
|
} else if (IntInit *II = dynamic_cast<IntInit*>(getLeafValue())) {
|
||||||
// Int inits are always integers. :)
|
// Int inits are always integers. :)
|
||||||
bool MadeChange = UpdateNodeType(MVT::isInt, TP);
|
bool MadeChange = UpdateNodeType(MVT::isInt, TP);
|
||||||
|
Reference in New Issue
Block a user