[llvm-commits] [llvm] r98586 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Bob Wilson
bob.wilson at apple.com
Mon Mar 15 16:17:09 PDT 2010
Someone who understands inline assembly better than I do should take a look at whether something similar is needed for X86 and other targets with condition codes. I don't see anything in the X86 target to handle "cc" clobbers.
On Mar 15, 2010, at 4:09 PM, Bob Wilson wrote:
> Author: bwilson
> Date: Mon Mar 15 18:09:18 2010
> New Revision: 98586
>
> URL: http://llvm.org/viewvc/llvm-project?rev=98586&view=rev
> Log:
> Translate "cc" clobber in ARM inline assembly to ARM::CCRRegisterClass.
> Radar 7459078.
>
> Modified:
> llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
>
> Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=98586&r1=98585&r2=98586&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
> +++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Mon Mar 15 18:09:18 2010
> @@ -4449,6 +4449,9 @@
> break;
> }
> }
> + if (StringRef("{cc}").equals_lower(Constraint))
> + return std::make_pair(0U, ARM::CCRRegisterClass);
> +
> return TargetLowering::getRegForInlineAsmConstraint(Constraint, VT);
> }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list