Added IRBuilder::CreateFPExtOrFPTrunc.
authorMichael Gottesman <mgottesman@apple.com>
Sun, 20 Jan 2013 03:56:31 +0000 (03:56 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sun, 20 Jan 2013 03:56:31 +0000 (03:56 +0000)
commit1d200f6d404b2c003c38a2bbee8270c9d2962278
tree918811ac78cbf52bab9f6df203a744ae9c0b3011
parent619ca0dc403842a28fe984bac4a2703738d3988e
Added IRBuilder::CreateFPExtOrFPTrunc.

This method serves an analogous purpose to CreateZExtOrTrunc/CreateSExtOrTrunc
but for floating point types.

In detail, it provides a manner when one is handling conversions of floating
point types of automatically selecting fpext, fptrunc, or identity depending on
the relative bitsize of the source and destination types.

llvm-svn: 172957
llvm/include/llvm/IR/IRBuilder.h