- /// Returns the expected cost of arithmetic ops, such as mul, xor, fsub, etc.
+ /// \return The number of scalar or vector registers that the target has.
+ /// If 'Vectors' is true, it returns the number of vector registers. If it is
+ /// set to false, it returns the number of scalar registers.
+ virtual unsigned getNumberOfRegisters(bool Vector) const {
+ return 8;
+ }
+
+ /// \return The expected cost of arithmetic ops, such as mul, xor, fsub, etc.