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

Method CreateConstArrayZero

IDEHelper/Compiler/BfIRBuilder.cpp:1091–1103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089}
1090
1091BfIRValue BfIRConstHolder::CreateConstArrayZero(BfIRType type, int count)
1092{
1093 BfConstantArrayZero* constant = mTempAlloc.Alloc<BfConstantArrayZero>();
1094 constant->mConstType = BfConstType_ArrayZero;
1095 constant->mType = type = type;
1096 constant->mCount = count;
1097 auto irValue = BfIRValue(BfIRValueFlags_Const, mTempAlloc.GetChunkedId(constant));
1098
1099#ifdef CHECK_CONSTHOLDER
1100 irValue.mHolder = this;
1101#endif
1102 return irValue;
1103}
1104
1105BfIRValue BfIRConstHolder::CreateConstArrayZero(int count)
1106{

Callers 5

FixConstValueParamsMethod · 0.80
AppendedObjectInitMethod · 0.80
ConstantToCurrentMethod · 0.80
CreateConstantMethod · 0.80
VisitMethod · 0.80

Calls 2

BfIRValueClass · 0.85
GetChunkedIdMethod · 0.80

Tested by

no test coverage detected