Home | History | Annotate | Download | only in AsmParser

Lines Matching refs:Alignment

731       unsigned Alignment;
732 if (ParseOptionalAlignment(Alignment)) return true;
733 GV->setAlignment(Alignment);
895 (Attrs & ~(Attribute::FunctionOnly | Attribute::Alignment)))
929 unsigned Alignment;
930 if (ParseOptionalStackAlignment(Alignment))
932 Attrs |= Attribute::constructStackAlignmentFromInt(Alignment);
937 unsigned Alignment;
938 if (ParseOptionalAlignment(Alignment))
940 Attrs |= Attribute::constructAlignmentFromInt(Alignment);
1113 bool LLParser::ParseOptionalAlignment(unsigned &Alignment) {
1114 Alignment = 0;
1118 if (ParseUInt32(Alignment)) return true;
1119 if (!isPowerOf2_32(Alignment))
1120 return Error(AlignLoc, "alignment is not a power of two");
1121 if (Alignment > Value::MaximumAlignment)
1132 bool LLParser::ParseOptionalCommaAlign(unsigned &Alignment,
1145 if (ParseOptionalAlignment(Alignment)) return true;
1180 bool LLParser::ParseOptionalStackAlignment(unsigned &Alignment) {
1181 Alignment = 0;
1188 if (ParseUInt32(Alignment)) return true;
1192 if (!isPowerOf2_32(Alignment))
1193 return Error(AlignLoc, "stack alignment is not a power of two");
2654 unsigned Alignment;
2665 ParseOptionalAlignment(Alignment) ||
2670 // If the alignment was parsed as an attribute, move to the alignment field.
2671 if (FuncAttrs & Attribute::Alignment) {
2672 Alignment = Attribute::getAlignmentFromAttrs(FuncAttrs);
2673 FuncAttrs &= ~Attribute::Alignment;
2750 Fn->setAlignment(Alignment);
3664 unsigned Alignment = 0;
3671 if (ParseOptionalAlignment(Alignment)) return true;
3676 ParseOptionalCommaAlign(Alignment, AteExtraComma))
3684 Inst = new AllocaInst(Ty, Size, Alignment);
3697 unsigned Alignment = 0;
3719 ParseOptionalCommaAlign(Alignment, AteExtraComma))
3725 if (isAtomic && !Alignment)
3726 return Error(Loc, "atomic load must have explicit non-zero alignment");
3730 Inst = new LoadInst(Val, "", isVolatile, Alignment, Ordering, Scope);
3744 unsigned Alignment = 0;
3768 ParseOptionalCommaAlign(Alignment, AteExtraComma))
3777 if (isAtomic && !Alignment)
3778 return Error(Loc, "atomic store must have explicit non-zero alignment");
3782 Inst = new StoreInst(Val, Ptr, isVolatile, Alignment, Ordering, Scope);