MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / getExactAlign

Method getExactAlign

ir/instr.cpp:4131–4138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4129}
4130
4131optional<uint64_t> PtrMask::getExactAlign() const {
4132 if (auto n = getInt(*mask)) {
4133 uint64_t align = -*n;
4134 if (is_power2(align))
4135 return align;
4136 }
4137 return {};
4138}
4139
4140vector<Value*> PtrMask::operands() const {
4141 return { ptr, mask };

Callers 1

preprocessMethod · 0.80

Calls 2

getIntFunction · 0.85
is_power2Function · 0.50

Tested by

no test coverage detected