LTO API: add lto_module_create_from_memory_with_path.
[oota-llvm.git] / include / llvm / Analysis / TargetTransformInfo.h
index a8975b7a4f931b9dd7d4f4c160bd06b4ff06da44..ec3e6065444686303a741b8e2289eb7174b331d7 100644 (file)
@@ -299,6 +299,13 @@ public:
   /// immediate of the specified type.
   virtual unsigned getIntImmCost(const APInt &Imm, Type *Ty) const;
 
+  /// \brief Return the expected cost of materialization for the given integer
+  /// immediate of the specified type for a given instruction. The cost can be
+  /// zero if the immediate can be folded into the specified instruction.
+  virtual unsigned getIntImmCost(unsigned Opcode, const APInt &Imm,
+                                 Type *Ty) const;
+  virtual unsigned getIntImmCost(Intrinsic::ID IID, const APInt &Imm,
+                                 Type *Ty) const;
   /// @}
 
   /// \name Vector Target Information