[LLVMdev] compare and swap

Andrew Lenharth andrewl at lenharth.org
Tue Feb 19 17:41:59 PST 2008


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.

Thanks,

Andrew



More information about the llvm-dev mailing list