From 8ec6a6ffe91806c18ae630b63a9d067db5efaadd Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 13 Mar 2008 03:45:48 +0000 Subject: [PATCH] Add note about asm constraints. llvm-svn: 48324 --- clang/NOTES.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/clang/NOTES.txt b/clang/NOTES.txt index 0f4a8de0aa99..0759acf3552e 100644 --- a/clang/NOTES.txt +++ b/clang/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 +}; + +//===---------------------------------------------------------------------===//