Home | History | Annotate | Download | only in AsmPrinter

Lines Matching defs:NumBits

74   unsigned NumBits = 0;
76 NumBits = TD.getPreferredAlignmentLog(GVar);
79 if (InBits > NumBits)
80 NumBits = InBits;
84 return NumBits;
88 // If the GVAlign is larger than NumBits, or if we are required to obey
89 // NumBits because the GV has an assigned section, obey it.
90 if (GVAlign > NumBits || GV->hasSection())
91 NumBits = GVAlign;
92 return NumBits;
1444 void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const {
1445 if (GV) NumBits = getGVAlignmentLog2(GV, *TM.getDataLayout(), NumBits);
1447 if (NumBits == 0) return; // 1-byte aligned: no need to emit alignment.
1450 OutStreamer.EmitCodeAlignment(1 << NumBits);
1452 OutStreamer.EmitValueToAlignment(1 << NumBits, 0, 1, 0);