[PATCH] D61321: [globalisel] Allow SrcOp to convert an APInt and render it as an immediate operand (MO.isImm() == true)
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 22:17:23 PDT 2019
arsenm added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h:120
class SrcOp {
union {
----------------
Usually arbitrary immediates use signed int64_t, as MachineOperand does
================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h:194
+ uint64_t getImm() const {
+ switch (Ty) {
----------------
Ditto
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61321/new/
https://reviews.llvm.org/D61321
More information about the llvm-commits
mailing list