[PATCH] D36570: [X86][AsmParser][AVX512] Error appropriately when K0 is tried as a write-mask
coby via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 10 03:23:50 PDT 2017
coby added inline comments.
================
Comment at: lib/Target/X86/AsmParser/X86AsmParser.cpp:2092
+ SMLoc RegLoc;
+ if (!ParseRegister(RegNo, RegLoc, StartLoc) &&
X86MCRegisterClasses[X86::VK1RegClassID].contains(RegNo)) {
----------------
m_zuckerman wrote:
> Why do you use a new RegLoc?
To acquire the start location of the register operand, so the location mark on ther error message will be correct
Repository:
rL LLVM
https://reviews.llvm.org/D36570
More information about the llvm-commits
mailing list