MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / get_segment

Method get_segment

src/memory_coloring.cpp:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 const segment* add_segment(instruction_ref ins, segment s) { return &(ins2segment[ins] = s); }
93
94 const segment* get_segment(instruction_ref ins) const
95 {
96 auto it = ins2segment.find(ins);
97 if(it == ins2segment.end())
98 return nullptr;
99 return &it->second;
100 }
101
102 // Remove segment for an instruction
103 void remove(instruction_ref ins)

Callers 2

buildMethod · 0.80
applyMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected