[PGO] convert a subset of C++ interfaces into C (for sharing) (NFC)
[oota-llvm.git] / include / llvm / Target / TargetRecip.h
index c3beb40fca00b2940683a6b255d76565b2b2ab93..210d4932484823a78aaafde86e61ba9d4544efb0 100644 (file)
@@ -31,20 +31,20 @@ public:
   /// Initialize all or part of the operations from command-line options or
   /// a front end.
   TargetRecip(const std::vector<std::string> &Args);
-  
+
   /// Set whether a particular reciprocal operation is enabled and how many
   /// refinement steps are needed when using it. Use "all" to set enablement
   /// and refinement steps for all operations.
-  void setDefaults(const StringRef &Key, bool Enable, unsigned RefSteps);
+  void setDefaults(StringRef Key, bool Enable, unsigned RefSteps);
 
   /// Return true if the reciprocal operation has been enabled by default or
   /// from the command-line. Return false if the operation has been disabled
   /// by default or from the command-line.
-  bool isEnabled(const StringRef &Key) const;
+  bool isEnabled(StringRef Key) const;
 
   /// Return the number of iterations necessary to refine the
   /// the result of a machine instruction for the given reciprocal operation.
-  unsigned getRefinementSteps(const StringRef &Key) const;
+  unsigned getRefinementSteps(StringRef Key) const;
 
   bool operator==(const TargetRecip &Other) const;
 
@@ -52,14 +52,14 @@ private:
   enum {
     Uninitialized = -1
   };
-  
+
   struct RecipParams {
     int8_t Enabled;
     int8_t RefinementSteps;
-    
+
     RecipParams() : Enabled(Uninitialized), RefinementSteps(Uninitialized) {}
   };
-  
+
   std::map<StringRef, RecipParams> RecipMap;
   typedef std::map<StringRef, RecipParams>::iterator RecipIter;
   typedef std::map<StringRef, RecipParams>::const_iterator ConstRecipIter;
@@ -68,6 +68,6 @@ private:
   void parseIndividualParams(const std::vector<std::string> &Args);
 };
 
-} // namespace llvm
+} // End llvm namespace
 
 #endif