[llvm] [InlineAsm] wrap ConstraintCode in enum class NFC (PR #66003)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 09:17:45 PDT 2023
================
@@ -17395,13 +17395,13 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
return Res;
}
-unsigned
+InlineAsm::ConstraintCode
RISCVTargetLowering::getInlineAsmMemConstraint(StringRef ConstraintCode) const {
// Currently only support length 1 constraints.
if (ConstraintCode.size() == 1) {
switch (ConstraintCode[0]) {
case 'A':
- return InlineAsm::Constraint_A;
+ return InlineAsm::ConstraintCode::A;
----------------
RKSimon wrote:
+1 Please don't refactor any targets, and especially not in a NFC commit
https://github.com/llvm/llvm-project/pull/66003
More information about the llvm-commits
mailing list