mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Give PPCISD:: nodes legible names in dumps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de387ce810
commit
da6d20f0c1
@ -139,6 +139,25 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM)
|
|||||||
computeRegisterProperties();
|
computeRegisterProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *PPCTargetLowering::getTargetNodeName(unsigned Opcode) const {
|
||||||
|
switch (Opcode) {
|
||||||
|
default: return 0;
|
||||||
|
case PPCISD::FSEL: return "PPCISD::FSEL";
|
||||||
|
case PPCISD::FCFID: return "PPCISD::FCFID";
|
||||||
|
case PPCISD::FCTIDZ: return "PPCISD::FCTIDZ";
|
||||||
|
case PPCISD::FCTIWZ: return "PPCISD::FCTIWZ";
|
||||||
|
case PPCISD::VMADDFP: return "PPCISD::VMADDFP";
|
||||||
|
case PPCISD::VNMSUBFP: return "PPCISD::VNMSUBFP";
|
||||||
|
case PPCISD::Hi: return "PPCISD::Hi";
|
||||||
|
case PPCISD::Lo: return "PPCISD::Lo";
|
||||||
|
case PPCISD::GlobalBaseReg: return "PPCISD::GlobalBaseReg";
|
||||||
|
case PPCISD::SRL: return "PPCISD::SRL";
|
||||||
|
case PPCISD::SRA: return "PPCISD::SRA";
|
||||||
|
case PPCISD::SHL: return "PPCISD::SHL";
|
||||||
|
case PPCISD::RET_FLAG: return "PPCISD::RET_FLAG";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// isFloatingPointZero - Return true if this is 0.0 or -0.0.
|
/// isFloatingPointZero - Return true if this is 0.0 or -0.0.
|
||||||
static bool isFloatingPointZero(SDOperand Op) {
|
static bool isFloatingPointZero(SDOperand Op) {
|
||||||
if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Op))
|
if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Op))
|
||||||
|
@ -70,6 +70,10 @@ namespace llvm {
|
|||||||
public:
|
public:
|
||||||
PPCTargetLowering(TargetMachine &TM);
|
PPCTargetLowering(TargetMachine &TM);
|
||||||
|
|
||||||
|
/// getTargetNodeName() - This method returns the name of a target specific
|
||||||
|
/// DAG node.
|
||||||
|
virtual const char *getTargetNodeName(unsigned Opcode) const;
|
||||||
|
|
||||||
/// LowerOperation - Provide custom lowering hooks for some operations.
|
/// LowerOperation - Provide custom lowering hooks for some operations.
|
||||||
///
|
///
|
||||||
virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
|
virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
|
||||||
|
Loading…
Reference in New Issue
Block a user