[llvm] Add diagnostic help for inline asm operand constraint 'H' (PR #88248)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 11:16:03 PDT 2024
================
@@ -528,6 +528,20 @@ class InlineAsm final : public Value {
}
};
+/// Inline Asm specifies input & output constraint which can
+/// specifiy target specific criteria for operand. If this criteria
+/// does not match, we must throw error.
+/// NO_ERROR represents Operand constraints are valid/applicable
+/// OPERAND_ERROR represents some constraint(unspecified) failed
+/// UNKNOWN_MODIFIER_ERROR represents use of unknown char constraint
+/// CONSTRAINT_<char>_ERROR represents error regarding constraint.
+enum class AsmOperandErrorCode {
+ NO_ERROR = 0,
+ OPERAND_ERROR,
+ UNKNOWN_MODIFIER_ERROR,
+ CONSTRAINT_H_ERROR,
+};
+
} // end namespace llvm
-#endif // LLVM_IR_INLINEASM_H
+#endif // LLVM_IR_INLINEASM_H
----------------
jrtc27 wrote:
Missing newline
https://github.com/llvm/llvm-project/pull/88248
More information about the llvm-commits
mailing list