[llvm] r197740 - Change getStringRepresentation to skip defaults.

Chris Lattner clattner at apple.com
Thu Dec 19 22:36:54 PST 2013


On Dec 19, 2013, at 3:03 PM, Rafael Espindola <rafael.espindola at gmail.com> wrote:
> +++ llvm/trunk/lib/IR/DataLayout.cpp Thu Dec 19 17:03:03 2013
> +static LayoutAlignElem DefaultAlignments[] = {
> +  { INTEGER_ALIGN, 1, 1, 1 },    // i1
> +  { INTEGER_ALIGN, 8, 1, 1 },    // i8
> +  { INTEGER_ALIGN, 16, 2, 2 },   // i16
> +  { INTEGER_ALIGN, 32, 4, 4 },   // i32
> +  { INTEGER_ALIGN, 64, 4, 8 },   // i64
> +  { FLOAT_ALIGN, 16, 2, 2 },     // half
> +  { FLOAT_ALIGN, 32, 4, 4 },     // float
> +  { FLOAT_ALIGN, 64, 8, 8 },     // double
> +  { FLOAT_ALIGN, 128, 16, 16 },  // ppcf128, quad, ...
> +  { VECTOR_ALIGN, 64, 8, 8 },    // v2i32, v1i64, ...
> +  { VECTOR_ALIGN, 128, 16, 16 }, // v16i8, v8i16, v4i32, ...
> +  { AGGREGATE_ALIGN, 0, 0, 8 }   // struct
> +};
> +

Can this be marked const?

-Chris




More information about the llvm-commits mailing list