[LLVMdev] creating a loop in lowering code

Dale Johannesen dalej at apple.com
Mon Sep 28 10:31:26 PDT 2009

On Sep 27, 2009, at 3:05 PMPDT, Bagel wrote:

> The MSP430 only has 1-bit shifts.  In the lowering code, I would  
> like to create
> a small loop to do multiple bit shifts.  I assume that I have to  
> create a new
> basic block, and figure out the chain stuff.
> Is there code in some backend, or generic lowering support, that  
> does a similar
> thing?  Could someone point me to it?

It doesn't work exactly like that, but see the handling of ATOMICs on  

More information about the llvm-dev mailing list