X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FARM%2FARMISelLowering.h;h=6879972e4d9101ab4bbd064baa4e96c421bd9781;hb=efbb39740c32b6b8311d27b0f279a7d523fbdf2d;hp=bcd605930811244dd869846782b4ed8356dcc9f9;hpb=a47aa4b4efb2b6c5944c2edb9a4346c0f3ffcaf1;p=oota-llvm.git diff --git a/lib/Target/ARM/ARMISelLowering.h b/lib/Target/ARM/ARMISelLowering.h index bcd60593081..6879972e4d9 100644 --- a/lib/Target/ARM/ARMISelLowering.h +++ b/lib/Target/ARM/ARMISelLowering.h @@ -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 findRepresentativeClass(MVT VT) const;