[llvm] [TargetLowering] Deduplicate choosing InlineAsm constraint between ISels (PR #67057)

Bill Wendling via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 14:06:07 PDT 2023


================
@@ -4820,6 +4820,15 @@ class TargetLowering : public TargetLoweringBase {
   /// Given a constraint, return the type of constraint it is for this target.
   virtual ConstraintType getConstraintType(StringRef Constraint) const;
 
+  using ConstraintPair = std::pair<StringRef, TargetLowering::ConstraintType>;
+  using ConstraintGroup = SmallVector<ConstraintPair>;
+  /// Given an OpInfo with list of constraints codes as strings, return a
+  /// sorted Vector of pairs of constraint codes and their types in priority of
+  /// what we'd prefer to lower them as. This may contains immediates that
----------------
bwendling wrote:

s/contains/contain/

https://github.com/llvm/llvm-project/pull/67057


More information about the llvm-commits mailing list