Skip to content

Commit 8ec6a6f

Browse files
author
Anders Carlsson
committed
Add note about asm constraints.
llvm-svn: 48324
1 parent 723f2a1 commit 8ec6a6f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

clang/NOTES.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,27 @@ The "selection of target" behavior is defined as follows:
110110
(1) If the user does not specify -triple, we default to the host triple.
111111
(2) If the user specifies a -arch, that overrides the arch in the host or
112112
specified triple.
113+
114+
//===---------------------------------------------------------------------===//
115+
116+
117+
verifyInputConstraint and verifyOutputConstraint should not return bool.
118+
119+
Instead we should return something like:
120+
121+
enum VerifyConstraintResult {
122+
Valid,
123+
124+
// Output only
125+
OutputOperandConstraintLacksEqualsCharacter,
126+
MatchingConstraintNotValidInOutputOperand,
127+
128+
// Input only
129+
InputOperandConstraintContainsEqualsCharacter,
130+
MatchingConstraintReferencesInvalidOperandNumber,
131+
132+
// Both
133+
PercentConstraintUsedWithLastOperand
134+
};
135+
136+
//===---------------------------------------------------------------------===//

0 commit comments

Comments
 (0)