This patch fixes createAtomicUpdate for lowering with float types.
Test added for the same.
This patch also changes the alloca argument for createAtomicUpdate and
createAtomicCapture from Instruction* to InsertPointTy. This is in
line with the other functions of the OpenMPIRBuilder class which take
AllocaIP as an InsertPointTy.
Is this move relevant?
If this is due to AllocaIP and Loc.IP being the same, you could take the occasion and check that they are different since is would be ambiguous which one is "first". See isConflictIP in D117226.