[PATCH] D63159: [GlobalISel] Add a G_BRJT opcode

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 16:13:38 PDT 2019


aemerson marked an inline comment as done.
aemerson added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineVerifier.cpp:1324-1325
+  case TargetOpcode::G_BRJT: {
+    if (!MRI->getType(MI->getOperand(0).getReg()).isPointer())
+      report("G_BRJT src operand 0 must be a pointer type", MI);
+
----------------
arsenm wrote:
> I think if you declared it as ptype0, you get this for free
I tried that but it doesn't seem to work.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D63159





More information about the llvm-commits mailing list