[llvm] Add diagnostic help for inline asm operand constraint 'H' (PR #88248)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Apr 10 10:39:52 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,
----------------
mahesh-attarde wrote:
All constraint codes related to inline asm are defined in same file. 
Will adding `AsmPrinter.h`   reasonable ?
https://github.com/llvm/llvm-project/pull/88248
    
    
More information about the llvm-commits
mailing list