MCPcopy Create free account
hub / github.com/GPUOpen-Tools/GPU-Reshape / CopyTo

Method CopyTo

Source/Libraries/Backend/Source/IL/BasicBlock.cpp:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include <Common/Containers/TrivialStackVector.h>
35
36void IL::BasicBlock::CopyTo(BasicBlock *out) const {
37 out->count = count;
38 out->dirty = dirty;
39 out->data = data;
40 out->sourceSpan = sourceSpan;
41 out->flags = flags;
42
43 // Preallocate
44 out->relocationTable.resize(relocationTable.size());
45
46 // Copy the relocation offsets
47 for (size_t i = 0; i < relocationTable.size(); i++) {
48 out->relocationTable[i] = out->relocationAllocator.Allocate();
49 out->relocationTable[i]->offset = relocationTable[i]->offset;
50 }
51}
52
53void IL::BasicBlock::IndexUsers() {
54 // Reindex the map

Callers 3

StoreMethod · 0.45
MergeMethod · 0.45
RunMethod · 0.45

Calls 3

resizeMethod · 0.80
sizeMethod · 0.45
AllocateMethod · 0.45

Tested by

no test coverage detected