diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-01-12 07:31:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-01-12 07:31:15 +0000 |
| commit | 071c9637c30f250dccd39c47a4f6d0dad709232f (patch) | |
| tree | 17f151be099db29c9609bdd7d0e428d4f7e6f4e7 /llvm/lib | |
| parent | dc09e40c9d5e8d88fadc01432cade02bc8d0467d (diff) | |
| download | bcm5719-llvm-071c9637c30f250dccd39c47a4f6d0dad709232f.tar.gz bcm5719-llvm-071c9637c30f250dccd39c47a4f6d0dad709232f.zip | |
Give V8ISD nodes symbolic names in dumps
llvm-svn: 25243
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp b/llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp index b418f575f17..7e017402a8e 100644 --- a/llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp +++ b/llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp @@ -76,6 +76,8 @@ namespace { SelectionDAG &DAG); virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI, MachineBasicBlock *MBB); + + virtual const char *getTargetNodeName(unsigned Opcode) const; }; } @@ -161,6 +163,22 @@ SparcV8TargetLowering::SparcV8TargetLowering(TargetMachine &TM) computeRegisterProperties(); } +const char *SparcV8TargetLowering::getTargetNodeName(unsigned Opcode) const { + switch (Opcode) { + case V8ISD::CMPICC: return "V8ISD::CMPICC"; + case V8ISD::CMPFCC: return "V8ISD::CMPFCC"; + case V8ISD::BRICC: return "V8ISD::BRICC"; + case V8ISD::BRFCC: return "V8ISD::BRFCC"; + case V8ISD::Hi: return "V8ISD::Hi"; + case V8ISD::Lo: return "V8ISD::Lo"; + case V8ISD::FTOI: return "V8ISD::FTOI"; + case V8ISD::ITOF: return "V8ISD::ITOF"; + case V8ISD::SELECT_ICC: return "V8ISD::SELECT_ICC"; + case V8ISD::SELECT_FCC: return "V8ISD::SELECT_FCC"; + case V8ISD::RET_FLAG: return "V8ISD::RET_FLAG"; + } +} + /// LowerArguments - V8 uses a very simple ABI, where all values are passed in /// either one or two GPRs, including FP values. TODO: we should pass FP values /// in FP registers for fastcc functions. |

