We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7078a2 commit 16ed156Copy full SHA for 16ed156
IGC/VectorCompiler/lib/GenXOpts/CMTrans/CMKernelArgOffset.cpp
@@ -1,6 +1,6 @@
1
/*========================== begin_copyright_notice ============================
2
3
-Copyright (C) 2017-2021 Intel Corporation
+Copyright (C) 2017-2023 Intel Corporation
4
5
SPDX-License-Identifier: MIT
6
@@ -592,8 +592,8 @@ void CMKernelArgOffset::processKernelOnOCLRT(Function *F) {
592
DL.getPointerABIAlignment(Ty->getPointerAddressSpace()));
593
}
594
} else {
595
- Bytes = Ty->getPrimitiveSizeInBits() / 8;
596
- Alignment = IGCLLVM::getAlignmentValue(Ty->getScalarSizeInBits() / 8);
+ Bytes = DL.getTypeSizeInBits(Ty) / 8;
+ Alignment = IGCLLVM::getAlignmentValue(DL.getABITypeAlignment(Ty));
597
598
placeArg(&Arg, Bytes, Alignment);
599
0 commit comments