search for: getpreferredtypealignmentshift

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

2008 Sep 12
0
[LLVMdev] Alignment of constant loads
...ABI alignment is retrieved for the given VT. It appears that constants are already aligned to the preferred alignment, given this code in ScheduleDAG::AddOperand(): } else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op)) { [...] Align = TM.getTargetData()->getPreferredTypeAlignmentShift(Type); (note there is a curious FIXME there about alignment of vector types -- I think this may be a relic since getPreferredTypeAlignmentShift should not return zero for vector types -- correct me if I'm wrong!) Do you have a suggestion as to how we can make it so that loads for consta...
2008 Sep 13
2
[LLVMdev] Alignment of constant loads
...given VT. > > It appears that constants are already aligned to the preferred > alignment, given this code in ScheduleDAG::AddOperand(): > > } else if (ConstantPoolSDNode *CP = > dyn_cast<ConstantPoolSDNode>(Op)) { > [...] > Align = TM.getTargetData()->getPreferredTypeAlignmentShift(Type); > > (note there is a curious FIXME there about alignment of vector types > -- I think this may be a relic since getPreferredTypeAlignmentShift > should not return zero for vector types -- correct me if I'm wrong!) I'm not sure about that FIXME offhand, but overall it loo...