1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

bool vector improvements

This commit is contained in:
Brian Fiete 2024-11-20 07:43:27 -05:00
parent b2078b10fe
commit 1da0c3cae7
2 changed files with 7 additions and 3 deletions

View file

@ -2244,9 +2244,15 @@ void BfIRCodeGen::HandleNextCmd()
CMD_PARAM(BfIRTypeEx*, elementType);
CMD_PARAM(int, length);
auto llvmType = elementType->mLLVMType;
if (llvmType->getScalarSizeInBits() == 1)
{
llvmType = llvm::Type::getInt8Ty(*mLLVMContext);
}
auto typeEx = new BfIRTypeEx();
mIRTypeExs.Add(typeEx);
typeEx->mLLVMType = llvm::FixedVectorType::get(elementType->mLLVMType, length);
typeEx->mLLVMType = llvm::FixedVectorType::get(llvmType, length);
typeEx->mMembers.Add(elementType);
SetResult(curId, typeEx);
}