On 30 July 2011 23:39, Gregory Junker <gjunker at dayark.com> wrote:>> From: Nick Lewycky [mailto:nicholas at mxc.ca][snip]>> Gregory Junker wrote: >> > That doesn't make a lot of sense to me -- LLVM can't add doubles? >> >> No, LLVM can't, but it can fadd them. ;) "add" only accepts integers >> and >> vectors of integers, "fadd" accepts floats and vectors of floats. See >> their entries in the language reference:[snip]> > Ah interesting -- this was introduced in 2.9 then? Easy enough for me to fix > this in my code. > > Out of curiosity, was this documented anywhere? I ask because I looked > through release notes and either missed this or didn't see it, and I'd like > to find out what else changed so I can make the necessary adjustments in my > code.Actually, it was new in *2.6*, which was released almost two years ago. It's documented here: <http://llvm.org/releases/2.6/docs/ReleaseNotes.html#coreimprovements>.
> Actually, it was new in *2.6*, which was released almost two years > ago. It's documented here: > <http://llvm.org/releases/2.6/docs/ReleaseNotes.html#coreimprovements>.Interesting -- then I guess my question is why 2.8 (which is the first version of LLVM I've used) didn't flag this? Either way, it makes sense and changing my API usage to call CreateFAdd instead of CreateAdd fixes this. Thanks Greg
Gregory Junker wrote:> >> Actually, it was new in *2.6*, which was released almost two years >> ago. It's documented here: >> <http://llvm.org/releases/2.6/docs/ReleaseNotes.html#coreimprovements>. > > Interesting -- then I guess my question is why 2.8 (which is the first version of LLVM I've used) didn't flag this? > > Either way, it makes sense and changing my API usage to call CreateFAdd instead of CreateAdd fixes this.For a while, we kept some API backwards compatibility magic in place which would forward creations of adds into creations of fadds. Nick