search for: arrayalign

Displaying 2 results from an estimated 2 matches for "arrayalign".

2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...TREE_CODE (ArrayTreeType) == BLOCK_POINTER_TYPE) && "Unknown ARRAY_REF!"); // As an LLVM extension, we allow ARRAY_REF with a pointer as the first // operand. This construct maps directly to a getelementptr instruction. Value *ArrayAddr; + unsigned ArrayAlign; - if (TREE_CODE(ArrayType) == ARRAY_TYPE) { + if (TREE_CODE(ArrayTreeType) == ARRAY_TYPE) { // First subtract the lower bound, if any, in the type of the index. tree LowerBound = array_ref_low_bound(exp); if (!integer_zerop(LowerBound)) @@ -5956,8 +5975,10 @@ LValue TreeToLL...
2009 Jan 09
0
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...l, PTy), Alignment); Since I don't know what this case handles, I can't comment on this. > LValue ArrayAddrLV = EmitLV(Array); > assert(!ArrayAddrLV.isBitfield() && "Arrays cannot be > bitfields!"); > ArrayAddr = ArrayAddrLV.Ptr; > + ArrayAlign = ArrayAddrLV.Alignment; Couldn't this be expr_align(Array)? > + const Type *ATy = cast<PointerType>(ArrayAddr->getType())- > >getElementType(); > + const Type *ElementTy = cast<ArrayType>(ATy)->getElementType(); > + unsigned Alignment = MinAlign(Ar...