On Jun 16, 2009, at 7:34 AM, Aaron Gray wrote:>> 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. > > Dan, > > Wondering the reason why there is no FDiv ?FDiv already exists; div was split quite a while ago. Dan
----- Original Message ----- From: "Dan Gohman" <gohman at apple.com> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Tuesday, June 16, 2009 7:49 AM Subject: Re: [LLVMdev] Upcoming API change: FAdd, FSub, FMul> > On Jun 16, 2009, at 7:34 AM, Aaron Gray wrote: > >>> 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. >> >> Dan, >> >> Wondering the reason why there is no FDiv ? > > FDiv already exists; div was split quite a while ago. >just me wondering: what is the reasoning behind this API change?...> Dan > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu llvm.cs.uiuc.edu > lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
> On Jun 16, 2009, at 7:34 AM, Aaron Gray wrote: > >>> 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. >> >> Dan, >> >> Wondering the reason why there is no FDiv ? > > FDiv already exists; div was split quite a while ago.Ah, right I must have missed its introduction. Thanks, Aaron
On Jun 16, 2009, at 8:18 AM, BGB wrote:> > just me wondering: > what is the reasoning behind this API change?...It makes the IR a little more consistent, and it's the first step to implement the functionality outlined here: nondot.org/sabre/LLVMNotes/IntegerOverflow.txt Also, some day the floating-point instructions will likely be extended with floating-point-specific flags. Dan
Possibly Parallel Threads
- [LLVMdev] Upcoming API change: FAdd, FSub, FMul
- [LLVMdev] Upcoming API change: FAdd, FSub, FMul
- [LLVMdev] Upcoming API change: FAdd, FSub, FMul
- Fusing contract fadd/fsub with normal fmul
- [LLVMdev] Bug 16257 - fmul of undef ConstantExpr not folded to undef