mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -54,16 +54,16 @@ struct OperandsSignature {
|
|||||||
bool initialize(TreePatternNode *InstPatNode,
|
bool initialize(TreePatternNode *InstPatNode,
|
||||||
const CodeGenTarget &Target,
|
const CodeGenTarget &Target,
|
||||||
MVT::SimpleValueType VT) {
|
MVT::SimpleValueType VT) {
|
||||||
if (!InstPatNode->isLeaf() &&
|
if (!InstPatNode->isLeaf()) {
|
||||||
InstPatNode->getOperator()->getName() == "imm") {
|
if (InstPatNode->getOperator()->getName() == "imm") {
|
||||||
Operands.push_back("i");
|
Operands.push_back("i");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!InstPatNode->isLeaf() &&
|
if (InstPatNode->getOperator()->getName() == "fpimm") {
|
||||||
InstPatNode->getOperator()->getName() == "fpimm") {
|
|
||||||
Operands.push_back("f");
|
Operands.push_back("f");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const CodeGenRegisterClass *DstRC = 0;
|
const CodeGenRegisterClass *DstRC = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user