[llvm-commits] [cfe-commits] [PATCH] ARM strexd and ldrexd intrinsics

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed May 25 16:37:19 PDT 2011


On May 25, 2011, at 4:26 PM, Bruno Cardoso Lopes wrote:

> Jakob, I
> agree that regalloc stuff is gross, but since both instructions are
> only used by these intrinsic right now the impact isn't great. Also,
> I'm not sure how to make it cleaner, can you point to some code that
> model the even/odd pair constraint explicitly in a more elegant way?

Eventually, I would like to do something similar to the QQ register class: Model the constraint as pseudo-super-registers R0_R1, R2_R3, ...

So far, this requires pseudo-instructions and tedious register class definitions. It also affects register allocation compile time by creating more register aliases.

Until these problems can be resolved, your solution is fine.

/jakob




More information about the llvm-commits mailing list