[llvm] [TargetLowering] Deduplicate choosing InlineAsm constraint between ISels (PR #67057)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 14:38:56 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
----------------
nickdesaulniers wrote:
https://github.com/llvm/llvm-project/pull/67057/commits/2d16f27727b10937e76a715c9142a5d7e68f5173
https://github.com/llvm/llvm-project/pull/67057
More information about the llvm-commits
mailing list