[LLVMdev] numeric limits of llvm Types?

Sanjoy Das sanjoy at playingwithpointers.com
Thu Jan 22 01:00:42 PST 2015


The APFloat class may have what you need, especially if you're looking
to create llvm::Constants.

-- Sanjoy

On Thu, Jan 22, 2015 at 12:54 AM, Alexander Poddey
<alexander.poddey at gmx.net> wrote:
> Hi all,
>
> can I access the numeric limits of the llvm types,
> e.g. HalfTy, FloatTy, DoubleTy, etc.
> in a fashion like the std numeric_limits tool?
>
> std::numeric_limits<half>::min()
> std::numeric_limits<half>::max()
>
> In c++API, I want to initialize values and need to know the correct range
> for the llvm types....
>
>
>
> Thx
> Alex
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list