[DirectX] Fix crash on ShuffleVectorInst in DXILBitcodeWriter
authorXiang Li <python3kgae@outlook.com>
Thu, 18 Aug 2022 06:40:13 +0000 (23:40 -0700)
committerXiang Li <python3kgae@outlook.com>
Fri, 19 Aug 2022 06:46:20 +0000 (23:46 -0700)
commitdfde731df78a552a27db7e701c91215c244a6fe2
treed28b190e63b9e6d6034f33e03fc94c1bc1218320
parentacaf6b9dc07de3c12c8a1a55fd8674bca547a917
[DirectX] Fix crash on ShuffleVectorInst in DXILBitcodeWriter

Use onstantDataSequential::getElementType to allow vector type.

Use getShuffleMaskForBitcode to get ShuffleMask.

Use old format for alloca Align.

Reviewed By: beanz

Differential Revision: https://reviews.llvm.org/D132102
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
llvm/test/tools/dxil-dis/shuffle.ll [new file with mode: 0644]