[llvm-commits] [llvm] r127714 - /llvm/trunk/include/llvm/Target/TargetData.h

Duncan Sands baldrick at free.fr
Wed Mar 16 01:08:01 PDT 2011


Hi Cameron,

> +  bool fitsInLegalInteger(unsigned Width) const {
> +    for (unsigned i = 0, e = (unsigned)LegalIntWidths.size(); i != e; ++i)
> +      if (Width<= LegalIntWidths[i])
> +        return true;

if LegalIntWidths is sorted then you only need to do one comparison here.

Ciao, Duncan.

> +    return false;
> +  }
> +
>     /// Target pointer alignment
>     unsigned getPointerABIAlignment() const { return PointerABIAlign; }
>     /// Return target's alignment for stack-based pointers
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list