]> granicus.if.org Git - clang/commitdiff
Add note about asm constraints.
authorAnders Carlsson <andersca@mac.com>
Thu, 13 Mar 2008 03:45:48 +0000 (03:45 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 13 Mar 2008 03:45:48 +0000 (03:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48324 91177308-0d34-0410-b5e6-96231b3b80d8

NOTES.txt

index 0f4a8de0aa99ad70a347ee1bbc41307f16ba796c..0759acf3552eaf5878a9921c852911f787f490b4 100644 (file)
--- a/NOTES.txt
+++ b/NOTES.txt
@@ -110,3 +110,27 @@ The "selection of target" behavior is defined as follows:
 (1) If the user does not specify -triple, we default to the host triple.
 (2) If the user specifies a -arch, that overrides the arch in the host or
     specified triple. 
+
+//===---------------------------------------------------------------------===//
+
+
+verifyInputConstraint and verifyOutputConstraint should not return bool. 
+
+Instead we should return something like:
+
+enum VerifyConstraintResult {
+  Valid,
+  
+  // Output only
+  OutputOperandConstraintLacksEqualsCharacter,
+  MatchingConstraintNotValidInOutputOperand,
+
+  // Input only
+  InputOperandConstraintContainsEqualsCharacter,
+  MatchingConstraintReferencesInvalidOperandNumber,
+  
+  // Both
+  PercentConstraintUsedWithLastOperand
+};
+
+//===---------------------------------------------------------------------===//