1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[X86][SSE] Added TODO comment to add support for AVX512 mask registers to shuffle comments

This came up in discussion on D19198

llvm-svn: 268915
This commit is contained in:
Simon Pilgrim 2016-05-09 13:30:16 +00:00
parent 22a6cb21be
commit 3ddc1a30df
2 changed files with 2 additions and 0 deletions

View File

@ -741,6 +741,7 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
if (ShuffleMask.empty())
return false;
// TODO: Add support for specifying an AVX512 style mask register in the comment.
if (!DestName) DestName = Src1Name;
OS << (DestName ? DestName : "mem") << " = ";

View File

@ -1109,6 +1109,7 @@ static std::string getShuffleComment(const MachineOperand &DstOp,
return X86ATTInstPrinter::getRegisterName(RegNum);
};
// TODO: Add support for specifying an AVX512 style mask register in the comment.
StringRef DstName = DstOp.isReg() ? GetRegisterName(DstOp.getReg()) : "mem";
StringRef Src1Name =
SrcOp1.isReg() ? GetRegisterName(SrcOp1.getReg()) : "mem";