From 769939dbde3557fc6ec65714aac0e213a917f245 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Tue, 31 Jul 2001 21:50:29 +0000 Subject: [PATCH] Added tree nodes for Phi instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetMachine/Sparc/Sparc.burg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/TargetMachine/Sparc/Sparc.burg b/lib/CodeGen/TargetMachine/Sparc/Sparc.burg index 193c6e993e6..35a00372ac1 100644 --- a/lib/CodeGen/TargetMachine/Sparc/Sparc.burg +++ b/lib/CodeGen/TargetMachine/Sparc/Sparc.burg @@ -44,7 +44,7 @@ typedef BasicTreeNode* NODEPTR_TYPE; %term GetElemPtr=24 %term GetElemPtrIdx=124 /* getElemPtr with index vector */ - /* 25 is PHINode, which is never a real tree node */ +%term Phi=25 %term Cast=26 /* cast that will be ignored. others are made explicit */ %term ToBoolTy=126 @@ -163,6 +163,7 @@ reg: Xor(reg,not) = 140 (0); /* cost is counted for not */ boolconst: SetCC(reg,Constant) = 41 (1); bool: SetCC(reg,reg) = 42 (1); boolreg: VReg = 43 (0); +boolreg: Constant = 44 (0); /* * Memory access instructions @@ -183,6 +184,7 @@ reg: AllocaN(reg) = 58 (1); reg: Call = 61 (0); reg: Shl(reg,reg) = 62 (1); reg: Shr(reg,reg) = 63 (1); +reg: Phi(reg,reg) = 64 (0); /* * Finally, leaf nodes of expression trees (other than boolreg) -- 2.34.1