[LLVMdev] Upcoming API change: FAdd, FSub, FMul

Chris Lattner clattner at apple.com
Tue Jun 16 23:37:04 PDT 2009


On Jun 15, 2009, at 4:23 PM, Dan Gohman wrote:

> Hello,
>
> The LLVM IR opcodes Add, Sub, and Mul have been each split into
> two.  Add, Sub, and Mul now only handle integer types, and three
> new opcodes, FAdd, FSub, and FMul now handle floating-point types.
>
> The main LLVM APIs are currently preserving backwards
> compatibility, transparently mapping integer opcodes to
> corresponding floating-point opcodes when the operands have
> floating-point types. This compatibility code will eventually be
> removed, so front-end writers should update their front-ends to
> use the new opcodes.  I've updated llvm-gcc as an example.

Thanks Dan, fwiw, I updated clang.

-Chris



More information about the llvm-dev mailing list