[PATCH] D115128: [TableGen][CodeEmitter] Introducing the VarLenCodeEmitterGen infrastructure
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 13 09:50:29 PST 2021
craig.topper added inline comments.
================
Comment at: llvm/utils/TableGen/VarLenCodeEmitterGen.cpp:427
+ if (BitWidth) {
+ SS.indent(6) << "if (Scratch.getBitWidth() < " << BitWidth << ")\n";
+ SS.indent(6) << " Scratch = Scratch.zext(" << BitWidth << ");\n";
----------------
I think this can be `Scratch = Scratch.zextOrSelf(BitWidth)`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115128/new/
https://reviews.llvm.org/D115128
More information about the llvm-commits
mailing list