[PATCH] D72939: [Schedule] Add a MultiHazardRecognizer

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 11:11:39 PST 2020


dmgreen created this revision.
dmgreen added reviewers: atrick, fhahn, evandro, arsenm.
Herald added subscribers: hiraditya, kristof.beyls, mgorny, wdng.
Herald added a project: LLVM.

This adds a MultiHazardRecognizer and starts to make use of it in the ARM backend. The idea of the class is to allow multiple independent hazard recognizers to be added to a single base MultiHazardRecognizer, allowing them to all work in parallel without requiring them to be chained into subclasses. They can then be added or not based on cpu or subtarget features, which will become useful in the ARM backend once more hazard recognizers are being used for various things.

This also renames ARMHazardRecognizer to ARMHazardRecognizerFPMLx in the process, to more clearly explain what that recognizer is designed for.


https://reviews.llvm.org/D72939

Files:
  llvm/include/llvm/CodeGen/MultiHazardRecognizer.h
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/MultiHazardRecognizer.cpp
  llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
  llvm/lib/Target/ARM/ARMHazardRecognizer.cpp
  llvm/lib/Target/ARM/ARMHazardRecognizer.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72939.238832.patch
Type: text/x-patch
Size: 9581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200117/c607e57d/attachment.bin>


More information about the llvm-commits mailing list