mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 12:06:08 +00:00
Minor code simplification.
llvm-svn: 104845
This commit is contained in:
parent
8e99e50d08
commit
388fa73f03
@ -54,15 +54,15 @@ 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user