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

Function isCast

ir/instr.cpp:5130–5133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5128
5129
5130const ConversionOp* isCast(ConversionOp::Op op, const Value &v) {
5131 auto c = dynamic_cast<const ConversionOp*>(&v);
5132 return (c && c->getOp() == op) ? c : nullptr;
5133}
5134
5135Value* isNoOp(const Value &v) {
5136 if (auto *c = isCast(ConversionOp::BitCast, v))

Callers 6

returns_nonlocalFunction · 0.85
can_remove_initFunction · 0.85
checkMethod · 0.85
off_used_bitsFunction · 0.85
isNoOpFunction · 0.85

Calls 1

getOpMethod · 0.45

Tested by

no test coverage detected