[PATCH] D53594: [GlobalISel] Introduce G_BUILD_VECTOR and G_CONCAT_VECTOR opcodes

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 5 09:56:12 PST 2018


aemerson added inline comments.


================
Comment at: lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:554
+      getMRI()->getType(Res).getElementType().getSizeInBits())
+    return buildBuildVector(Res, Ops);
+  MachineInstrBuilder MIB = buildInstr(TargetOpcode::G_BUILD_VECTOR_TRUNC);
----------------
aditya_nandakumar wrote:
> What's your take on just passing this to buildBuildVector vs asserting here?
I chose to redirect to buildBuildVector because I assumed that when you're using MachineIRBuilder you're interested in the overall semantics rather than with specific opcode is generated.


Repository:
  rL LLVM

https://reviews.llvm.org/D53594





More information about the llvm-commits mailing list