[PATCH] D120958: [TableGen] Add support for variable length instruction in decoder generator

Min-Yih Hsu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 10:05:30 PDT 2022


myhsu added inline comments.


================
Comment at: llvm/utils/TableGen/FixedLenDecoderEmitter.cpp:1875
+        Operands.push_back(getOpInfo(cast<DefInit>(Arg)->getDef()));
+      }
+    } else {
----------------
myhsu wrote:
> braces here can be removed
I meant only braces around the for-loop, your current syntax might create ambiguity. Here is the guideline: https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120958/new/

https://reviews.llvm.org/D120958



More information about the llvm-commits mailing list