Lines Matching refs:Alignment
126 // If the alignment was parsed as an attribute, move to the alignment
130 FnAttrs.removeAttribute(Attribute::Alignment);
927 unsigned Alignment;
928 if (ParseOptionalAlignment(Alignment)) return true;
929 GV->setAlignment(Alignment);
1021 // As a hack, we allow function alignment to be initially parsed as an
1023 // group and later moved to the alignment field.
1024 unsigned Alignment;
1028 ParseUInt32(Alignment))
1031 if (ParseOptionalAlignment(Alignment))
1034 B.addAlignmentAttr(Alignment);
1038 unsigned Alignment;
1042 ParseUInt32(Alignment))
1045 if (ParseOptionalStackAlignment(Alignment))
1048 B.addStackAlignmentAttr(Alignment);
1364 unsigned Alignment;
1365 if (ParseOptionalAlignment(Alignment))
1367 B.addAlignmentAttr(Alignment);
1467 unsigned Alignment;
1468 if (ParseOptionalAlignment(Alignment))
1470 B.addAlignmentAttr(Alignment);
1776 bool LLParser::ParseOptionalAlignment(unsigned &Alignment) {
1777 Alignment = 0;
1781 if (ParseUInt32(Alignment)) return true;
1782 if (!isPowerOf2_32(Alignment))
1783 return Error(AlignLoc, "alignment is not a power of two");
1784 if (Alignment > Value::MaximumAlignment)
1822 bool LLParser::ParseOptionalCommaAlign(unsigned &Alignment,
1835 if (ParseOptionalAlignment(Alignment)) return true;
1912 bool LLParser::ParseOptionalStackAlignment(unsigned &Alignment) {
1913 Alignment = 0;
1920 if (ParseUInt32(Alignment)) return true;
1924 if (!isPowerOf2_32(Alignment))
1925 return Error(AlignLoc, "stack alignment is not a power of two");
4621 unsigned Alignment;
4637 ParseOptionalAlignment(Alignment) ||
4651 // If the alignment was parsed as an attribute, move to the alignment field.
4653 Alignment = FuncAttrs.getAlignment();
4654 FuncAttrs.removeAttribute(Attribute::Alignment);
4739 Fn->setAlignment(Alignment);
5327 return Error(CallLoc, "invoke instructions may not have an alignment");
5931 return Error(CallLoc, "call instructions may not have an alignment");
5962 unsigned Alignment = 0;
5976 if (ParseOptionalAlignment(Alignment)) return true;
5981 ParseOptionalCommaAlign(Alignment, AteExtraComma))
5989 AllocaInst *AI = new AllocaInst(Ty, Size, Alignment);
6002 unsigned Alignment = 0;
6025 ParseOptionalCommaAlign(Alignment, AteExtraComma))
6030 if (isAtomic && !Alignment)
6031 return Error(Loc, "atomic load must have explicit non-zero alignment");
6040 Inst = new LoadInst(Ty, Val, "", isVolatile, Alignment, Ordering, Scope);
6051 unsigned Alignment = 0;
6072 ParseOptionalCommaAlign(Alignment, AteExtraComma))
6081 if (isAtomic && !Alignment)
6082 return Error(Loc, "atomic store must have explicit non-zero alignment");
6087 Inst = new StoreInst(Val, Ptr, isVolatile, Alignment, Ordering, Scope);