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

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 13:51:42 PDT 2019


arsenm 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);
+
----------------
I think if you declared it as ptype0, you get this for free


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