[PATCH] D134749: [clang][Interp] Implement Div opcode

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 27 09:21:11 PDT 2022


tbaeder added inline comments.


================
Comment at: clang/lib/AST/Interp/Interp.h:189
+  const unsigned Bits = RHS.bitWidth() * 2;
+  T Result;
+  if (!T::div(LHS, RHS, Bits, &Result)) {
----------------
Could use a helper function here and in `Rem` to reduce code duplication.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134749



More information about the cfe-commits mailing list