Lines Matching defs:NumBits
73 unsigned NumBits = 0;
75 NumBits = TD.getPreferredAlignmentLog(GVar);
78 if (InBits > NumBits)
79 NumBits = InBits;
83 return NumBits;
87 // If the GVAlign is larger than NumBits, or if we are required to obey
88 // NumBits because the GV has an assigned section, obey it.
89 if (GVAlign > NumBits || GV->hasSection())
90 NumBits = GVAlign;
91 return NumBits;
1422 void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const {
1423 if (GV) NumBits = getGVAlignmentLog2(GV, *TM.getDataLayout(), NumBits);
1425 if (NumBits == 0) return; // 1-byte aligned: no need to emit alignment.
1428 OutStreamer.EmitCodeAlignment(1 << NumBits);
1430 OutStreamer.EmitValueToAlignment(1 << NumBits, 0, 1, 0);