MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / SetCurrentCodeBlock

Method SetCurrentCodeBlock

FEXCore/Source/Interface/IR/IREmitter.cpp:184–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void IREmitter::SetCurrentCodeBlock(Ref Node) {
185 CurrentCodeBlock = Node;
186 LOGMAN_THROW_A_FMT(Node->Op(DualListData.DataBegin())->Op == OP_CODEBLOCK, "Node wasn't codeblock. It was '{}'",
187 IR::GetName(Node->Op(DualListData.DataBegin())->Op));
188 SetWriteCursor(Node->Op(DualListData.DataBegin())->CW<IROp_CodeBlock>()->Begin.GetNode(DualListData.ListBegin()));
189
190 // Constants are pooled only within a single block.
191 NrConstants = 0;
192}
193
194} // namespace FEXCore::IR

Callers 2

GenerateIRMethod · 0.80

Calls 4

OpMethod · 0.80
DataBeginMethod · 0.80
ListBeginMethod · 0.80
GetNodeMethod · 0.45

Tested by

no test coverage detected