[TLI] Add a new hook to TargetLowering to query the target if a load of a constant...
[oota-llvm.git] / lib / Target / ARM / ARMISelLowering.h
index bcd605930811244dd869846782b4ed8356dcc9f9..6879972e4d9101ab4bbd064baa4e96c421bd9781 100644 (file)
@@ -385,6 +385,12 @@ namespace llvm {
     virtual bool getTgtMemIntrinsic(IntrinsicInfo &Info,
                                     const CallInst &I,
                                     unsigned Intrinsic) const;
+
+    /// \brief Returns true if it is beneficial to convert a load of a constant
+    /// to just the constant itself.
+    virtual bool shouldConvertConstantLoadToIntImm(const APInt &Imm,
+                                                   Type *Ty) const;
+
   protected:
     std::pair<const TargetRegisterClass*, uint8_t>
     findRepresentativeClass(MVT VT) const;