MCPcopy Create free account
hub / github.com/beefytech/Beef / IsLive

Method IsLive

IDEHelper/Backend/BeMCContext.cpp:4107–4118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4105}
4106
4107bool BeMCContext::IsLive(BeVTrackingList* liveRegs, int origVRegIdx, BeMCRemapper& regRemaps)
4108{
4109 // Check the whole remap chain to determine liveness
4110 int vregIdx = regRemaps.GetHead(origVRegIdx);
4111 while (vregIdx != -1)
4112 {
4113 if (mLivenessContext.IsSet(liveRegs, vregIdx))
4114 return true;
4115 vregIdx = regRemaps.GetNext(vregIdx);
4116 }
4117 return false;
4118}
4119
4120void BeMCContext::AddRegRemap(int from, int to, BeMCRemapper& regRemaps, bool allowRemapToDbgVar)
4121{

Callers

nothing calls this directly

Calls 3

GetHeadMethod · 0.45
IsSetMethod · 0.45
GetNextMethod · 0.45

Tested by

no test coverage detected