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

Method CreateVectorType

IDEHelper/Backend/BeContext.cpp:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169BeVectorType* BeContext::CreateVectorType(BeType* type, int length)
170{
171 auto arrayType = mTypes.Alloc<BeVectorType>();
172 arrayType->mContext = this;
173 arrayType->mTypeCode = BeTypeCode_Vector;
174 arrayType->mElementType = type;
175 arrayType->mLength = length;
176 arrayType->mSize = type->GetStride() * length;
177 arrayType->mAlign = type->mAlign;
178 return arrayType;
179}
180
181BeFunctionType* BeContext::CreateFunctionType(BeType* returnType, const SizedArrayImpl<BeType*>& paramTypes, bool isVarArg)
182{

Callers 1

HandleNextCmdMethod · 0.80

Calls 1

GetStrideMethod · 0.45

Tested by

no test coverage detected