aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-19 21:34:28 +0000
committerChris Lattner <sabre@nondot.org>2003-10-19 21:34:28 +0000
commit3b237fcd385a734b49bb54893ce256ba181e36f9 (patch)
treee2cbde4832ffbd2160bea61006af1cbe415e3604 /lib/Target/SparcV9
parent4661dc6a6abc9ef22e674fe4951a715befd4e072 (diff)
downloadexternal_llvm-3b237fcd385a734b49bb54893ce256ba181e36f9.zip
external_llvm-3b237fcd385a734b49bb54893ce256ba181e36f9.tar.gz
external_llvm-3b237fcd385a734b49bb54893ce256ba181e36f9.tar.bz2
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9')
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrForest.cpp4
-rw-r--r--lib/Target/SparcV9/SparcV9InstrInfo.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
index 496e279..7ae2373 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
+++ b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
@@ -299,7 +299,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr)
InstrTreeNode* opTreeNode;
if (isa<Instruction>(operand) && operand->hasOneUse() &&
cast<Instruction>(operand)->getParent() == instr->getParent() &&
- instr->getOpcode() != Instruction::PHINode &&
+ instr->getOpcode() != Instruction::PHI &&
instr->getOpcode() != Instruction::Call)
{
// Recursively create a treeNode for it.
@@ -334,7 +334,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr)
if (numChildren > 2)
{
unsigned instrOpcode = treeNode->getInstruction()->getOpcode();
- assert(instrOpcode == Instruction::PHINode ||
+ assert(instrOpcode == Instruction::PHI ||
instrOpcode == Instruction::Call ||
instrOpcode == Instruction::Load ||
instrOpcode == Instruction::Store ||
diff --git a/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
index 1807ea0..b4b4702 100644
--- a/lib/Target/SparcV9/SparcV9InstrInfo.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
@@ -365,7 +365,7 @@ MaxConstantForInstr(unsigned llvmOpCode)
case Instruction::Malloc:
case Instruction::Alloca:
case Instruction::GetElementPtr:
- case Instruction::PHINode:
+ case Instruction::PHI:
case Instruction::Cast:
case Instruction::Call: modelOpCode = V9::ADDi; break;