[llvm] [GlobalISel] Diagnose inline assembly constraint lowering errors (PR #135782)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 03:17:24 PDT 2025
================
@@ -212,6 +213,17 @@ static bool buildAnyextOrCopy(Register Dst, Register Src,
return true;
}
+static bool reportInlineAsmConstraintError(const CallBase &Call,
+ const GISelAsmOperandInfo &Info,
+ Twine Msg) {
+ LLVMContext &Ctx = Call.getContext();
+ Ctx.diagnose(DiagnosticInfoInlineAsm(
+ Call, "invalid constraint '" + Info.ConstraintCode + "': " + Msg));
+ // TODO(?): Allow selection to continue by recovering/leaving the gMIR in a
+ // good state, like the DAG does.
----------------
arsenm wrote:
Yes, this needs to be done
https://github.com/llvm/llvm-project/pull/135782
More information about the llvm-commits
mailing list