MCPcopy Create free account
hub / github.com/GANGE666/xVMP / parseAlignmentValue

Method parseAlignmentValue

src/lib/Bitcode/Reader/BitcodeReader.cpp:1429–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1427}
1428
1429Error BitcodeReader::parseAlignmentValue(uint64_t Exponent,
1430 unsigned &Alignment) {
1431 // Note: Alignment in bitcode files is incremented by 1, so that zero
1432 // can be used for default alignment.
1433 if (Exponent > Value::MaxAlignmentExponent + 1)
1434 return error("Invalid alignment value");
1435 Alignment = (1 << static_cast<unsigned>(Exponent)) >> 1;
1436 return Error::success();
1437}
1438
1439Error BitcodeReader::parseAttrKind(uint64_t Code, Attribute::AttrKind *Kind) {
1440 *Kind = getAttrFromCode(Code);

Callers

nothing calls this directly

Calls 2

successFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected