[PATCH] D78261: [globalisel] Allow backends to report an issue without triggering fallback. NFC

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 18:48:47 PDT 2020


qcolombet accepted this revision.
qcolombet added a comment.
This revision is now accepted and ready to land.

LGTM with the bool to enum change.



================
Comment at: llvm/lib/CodeGen/GlobalISel/Utils.cpp:201
 
-void llvm::reportGISelFailure(MachineFunction &MF, const TargetPassConfig &TPC,
-                              MachineOptimizationRemarkEmitter &MORE,
-                              MachineOptimizationRemarkMissed &R) {
-  MF.getProperties().set(MachineFunctionProperties::Property::FailedISel);
-
+static void reportGISelDiagnostic(bool AllowFatal, MachineFunction &MF,
+                                  const TargetPassConfig &TPC,
----------------
Instead of `AllowFatal` could we have a severity enum?
For now, maybe just warning and failure, where failure would be equivalent to AllowFatal == true?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78261





More information about the llvm-commits mailing list