[PATCH] D31359: [GlobalISel]: Allow backends to custom legalize Intrinsics
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 27 10:13:33 PST 2019
arsenm added a comment.
I'm not sure I understand why this needs to be separate from legalizeCustom
================
Comment at: lib/CodeGen/GlobalISel/LegalizerHelper.cpp:40-41
LegalizerHelper::legalizeInstrStep(MachineInstr &MI) {
+ if (TargetOpcode::G_INTRINSIC == MI.getOpcode() ||
+ TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS == MI.getOpcode())
+ return LI.legalizeIntrinsic(MI, MRI, MIRBuilder) ? Legalized
----------------
Conditions written backwards
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D31359/new/
https://reviews.llvm.org/D31359
More information about the llvm-commits
mailing list