- Avoid using floating point stores to implement memset unless the value is zero.
[oota-llvm.git] / include / llvm / Target / TargetLowering.h
index dd04785fe85247c37900878e985690553ab9c418..ad6fcef765d90d3ccce353099beed01070204851 100644 (file)
@@ -522,7 +522,7 @@ public:
   /// counterpart (e.g. structs), otherwise it will assert.
   EVT getValueType(const Type *Ty, bool AllowUnknown = false) const {
     EVT VT = EVT::getEVT(Ty, AllowUnknown);
-    return VT == MVT:: iPTR ? PointerTy : VT;
+    return VT == MVT::iPTR ? PointerTy : VT;
   }
 
   /// getByValTypeAlignment - Return the desired alignment for ByVal aggregate
@@ -636,9 +636,9 @@ public:
   /// and store operations as a result of memset, memcpy, and memmove lowering.
   /// It returns EVT::Other if SelectionDAG should be responsible for
   /// determining it.
-  virtual EVT getOptimalMemOpType(uint64_t Size, unsigned Align,
-                                  bool isSrcConst, bool isSrcStr,
-                                  SelectionDAG &DAG) const {
+  virtual EVT getOptimalMemOpType(uint64_t Size,
+                                  unsigned DstAlign, unsigned SrcAlign,
+                                  bool SafeToUseFP, SelectionDAG &DAG) const {
     return MVT::Other;
   }