diff options
Diffstat (limited to 'lib/Target/Alpha')
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.cpp | 6 | ||||
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp index 368c736a7d..87f1eec137 100644 --- a/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/lib/Target/Alpha/AlphaISelLowering.cpp @@ -40,7 +40,6 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) // Set up the TargetLowering object. //I am having problems with shr n ubyte 1 setShiftAmountType(MVT::i64); - setSetCCResultType(MVT::i64); setSetCCResultContents(ZeroOrOneSetCCResult); setUsesGlobalOffsetTable(true); @@ -151,6 +150,11 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) computeRegisterProperties(); } +MVT::ValueType +AlphaTargetLowering::getSetCCResultType(const SDOperand &) const { + return MVT::i64; +} + const char *AlphaTargetLowering::getTargetNodeName(unsigned Opcode) const { switch (Opcode) { default: return 0; diff --git a/lib/Target/Alpha/AlphaISelLowering.h b/lib/Target/Alpha/AlphaISelLowering.h index 41a4b54c5f..8738d02f4d 100644 --- a/lib/Target/Alpha/AlphaISelLowering.h +++ b/lib/Target/Alpha/AlphaISelLowering.h @@ -66,6 +66,9 @@ namespace llvm { public: explicit AlphaTargetLowering(TargetMachine &TM); + /// getSetCCResultType - Get the SETCC result ValueType + virtual MVT::ValueType getSetCCResultType(const SDOperand &) const; + /// LowerOperation - Provide custom lowering hooks for some operations. /// virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG); |