[PATCH] D99057: [TableGen] Allow BitsInit to init integer in pseudo expansion
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 22 21:59:38 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/utils/TableGen/PseudoLoweringEmitter.cpp:113
+ auto II = dyn_cast<IntInit>(BI->convertInitializerTo(IntRecTy::get()));
+ assert(II && "Cannot convert to integer initializer");
+ OperandMap[BaseIdx + i].Kind = OpData::Imm;
----------------
Just use a cast instead of checking dyn_cast with an assert.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99057/new/
https://reviews.llvm.org/D99057
More information about the llvm-commits
mailing list