[LLVMdev] compare and swap

Chris Lattner sabre at nondot.org
Tue Feb 19 19:43:17 PST 2008


On Feb 19, 2008, at 5:41 PM, Andrew Lenharth wrote:

> On 2/19/08, Evan Cheng <evan.cheng at apple.com> wrote:
>> The current *hack* solution is to mark your pseudo instruction with
>> usesCustomDAGSchedInserter = 1. That allows the targets to expand it
>> at scheduling time by providing a EmitInstrWithCustomInserter() hook.
>> You can create new basic blocks then.
>
> I guess that can work in the short term.  It just seems wasteful for
> each target that uses ldl/stc sequences to have to all implement it.
> But if that is what we can do right now, I'll give that a shot.

I agree with Evan.  This solution is not wonderful but it is the best  
we have right now.

-chris



More information about the llvm-dev mailing list