[cfe-commits] r50085 - /cfe/trunk/lib/Basic/Targets.cpp
Nate Begeman
natebegeman at mac.com
Mon Apr 21 22:03:19 PDT 2008
Author: sampo
Date: Tue Apr 22 00:03:19 2008
New Revision: 50085
URL: http://llvm.org/viewvc/llvm-project?rev=50085&view=rev
Log:
Add some basic ARM asm constraints
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=50085&r1=50084&r2=50085&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Apr 22 00:03:19 2008
@@ -804,7 +804,16 @@
NumAliases = 0;
}
virtual bool validateAsmConstraint(char c,
- TargetInfo::ConstraintInfo &Info) const {
+ TargetInfo::ConstraintInfo &info) const {
+ switch (c) {
+ default:
+ case 'l': // r0-r7
+ case 'h': // r8-r15
+ case 'w': // VFP Floating point register single precision
+ case 'P': // VFP Floating point register double precision
+ info = (TargetInfo::ConstraintInfo)(info|TargetInfo::CI_AllowsRegister);
+ return true;
+ }
return false;
}
virtual const char *getClobbers() const {
More information about the cfe-commits
mailing list