[llvm-commits] [llvm] r74110 - in /llvm/trunk: include/llvm/CodeGen/ValueTypes.h include/llvm/Target/TargetLowering.h lib/CodeGen/SelectionDAG/LegalizeDAG.cpp lib/CodeGen/SelectionDAG/LegalizeTypes.h lib/CodeGen/SelectionDAG/TargetLowering.cpp

David Greene dag at cray.com
Wed Jun 24 14:05:08 PDT 2009


On Wednesday 24 June 2009 15:14, Duncan Sands wrote:

> >  //===- CodeGen/ValueTypes.h - Low-Level Target independ. types --*- C++
> > -*-===// //
> >  //                     The LLVM Compiler Infrastructure
> > @@ -72,6 +73,11 @@
> >
> >        LAST_VALUETYPE =  30,   // This always remains at the end of the
> > list.
> >
> > +      // This is the current maximum for LAST_VALUETYPE.
> > +      // Affects ValueTypeActions in TargetLowering.h.
> > +      // MVT::MAX_ALLOWED_VALUETYPE is used for asserts and to size bit
> > vectors +      MAX_ALLOWED_VALUETYPE = 64,
> > +
>
> Is it checked anywhere that LAST_VALUETYPE <= MAX_ALLOWED_VALUETYPE?

>From the log:

2. Instead of checking "MVT::LAST_VALUETYPE <= 32", all of those uses
now become "MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_LAST_VALUETYPE"

                              -Dave




More information about the llvm-commits mailing list