[PATCH] D143471: [X86][MC][NFC] Refine code in X86MCCodeEmitter.cpp about opcode prefix
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 18:00:31 PST 2023
skan added inline comments.
================
Comment at: llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp:1135
}
+ PrefixKind Kind = Prefix.getKind(VEX2);
+ Prefix.setKind(Kind);
----------------
craig.topper wrote:
> The names of these functions is confusing. getKind followed by setKind looks odd. I would naively expect setKind to set the thing that getKind returns. So getKind followed by setKind looks redundant.
You're right. I re-designed the interface to `setLowerBound`, `determineOptimalKind`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143471/new/
https://reviews.llvm.org/D143471
More information about the llvm-commits
mailing list