[PATCH] D70157: Align branches within 32-Byte boundary
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 20:20:43 PST 2019
skan marked an inline comment as done.
skan added inline comments.
================
Comment at: llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h:134
+ /// macro-fusion.
+ inline FirstMFInstKind classifyFirstOpcode(unsigned Opcode) {
+ switch (Opcode) {
----------------
craig.topper wrote:
> xiangzhangllvm wrote:
> > xiangzhangllvm wrote:
> > > We rarely put function definition at *.h, if putting it into X86MacroFusion.cpp will cause compile problem, X86AsmBackend.cpp maybe a good place to put it.
> > Seems not big function, just many "case", it is fine for me if you don't want to change it.
> If you want to put it in a cpp, i'd say X86MCTargetDesc.cpp. There are already a few random functions in there like getX86SubSuperRegister or whatever its called.
I think the function is small enough to be put in header file, I will keep it unchanged if you are fine with it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70157/new/
https://reviews.llvm.org/D70157
More information about the llvm-commits
mailing list