diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-01-16 19:53:25 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-01-16 19:53:25 +0000 |
commit | 84a0605feb92b085b5cf4758b5b14d632fdd8974 (patch) | |
tree | 7837dc977db26f990beb848e9c9a5f6c9482f207 /lib | |
parent | 72223eea95d1ef1c77a6aeb5134e184601db27bb (diff) |
Friendly names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.cpp | 15 | ||||
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.h | 5 |
2 files changed, 19 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp index b9332890d6..67e49c54f2 100644 --- a/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/lib/Target/Alpha/AlphaISelLowering.cpp @@ -128,6 +128,21 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) useITOF = TM.getSubtarget<AlphaSubtarget>().hasF2I(); } +const char *AlphaTargetLowering::getTargetNodeName(unsigned Opcode) const { + switch (Opcode) { + default: return 0; + case AlphaISD::ITOFT_: return "Alpha::ITOFT_"; + case AlphaISD::FTOIT_: return "Alpha::FTOIT_"; + case AlphaISD::CVTQT_: return "Alpha::CVTQT_"; + case AlphaISD::CVTQS_: return "Alpha::CVTQS_"; + case AlphaISD::CVTTQ_: return "Alpha::CVTTQ_"; + case AlphaISD::GPRelHi: return "Alpha::GPRelHi"; + case AlphaISD::GPRelLo: return "Alpha::GPRelLo"; + case AlphaISD::RelLit: return "Alpha::RelLit"; + case AlphaISD::GlobalBaseReg: return "Alpha::GlobalBaseReg"; + case AlphaISD::DivCall: return "Alpha::DivCall"; + } +} //http://www.cs.arizona.edu/computer.help/policy/DIGITAL_unix/AA-PY8AC-TET1_html/callCH3.html#BLOCK21 diff --git a/lib/Target/Alpha/AlphaISelLowering.h b/lib/Target/Alpha/AlphaISelLowering.h index c9245ad26c..e9d9b91dc0 100644 --- a/lib/Target/Alpha/AlphaISelLowering.h +++ b/lib/Target/Alpha/AlphaISelLowering.h @@ -56,7 +56,10 @@ namespace llvm { /// LowerOperation - Provide custom lowering hooks for some operations. /// virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG); - + + //Friendly names for dumps + const char *getTargetNodeName(unsigned Opcode) const; + /// LowerArguments - This hook must be implemented to indicate how we should /// lower the arguments for the specified function, into the specified DAG. virtual std::vector<SDOperand> |