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

Method addInstr

ir/function.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void BasicBlock::addInstr(unique_ptr<Instr> &&i, bool push_front) {
44 if (push_front)
45 m_instrs.emplace(m_instrs.begin(), std::move(i));
46 else
47 m_instrs.emplace_back(std::move(i));
48}
49
50void BasicBlock::addInstrAt(unique_ptr<Instr> &&i, const Instr *other,
51 bool before) {

Callers 14

alive_parser.cppFile · 0.80
parse_fnFunction · 0.80
dupMethod · 0.80
function.cppFile · 0.80
unrollMethod · 0.80
known_callFunction · 0.80
convert_constexprMethod · 0.80
copy_inserterMethod · 0.80
visitCallInstMethod · 0.80
visitIntrinsicInstMethod · 0.80
handleMetadataMethod · 0.80
handleOpBundlesMethod · 0.80

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected