[llvm] [CodeGen] [ARM] Make RISC-V Init Undef Pass Target Independent and add support for the ARM Architecture. (PR #77770)
Jack Styles via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 08:27:49 PST 2024
================
@@ -327,6 +327,14 @@ class TargetSubtargetInfo : public MCSubtargetInfo {
/// Get the list of MacroFusion predicates.
virtual std::vector<MacroFusionPredTy> getMacroFusions() const { return {}; };
+
+ /// supportsInitUndef is used to determine if an architecture supports
+ /// the Init Undef Pass. By default, it is assumed that it will not support
+ /// the pass, with architecture specific overrides providing the information
+ /// where they are implemented. This was originally used in RISC-V's Init
+ /// Undef pass but has been moved to be a virtual function when the pass was
----------------
Stylie777 wrote:
I have removed the last sentence of this comment as this then removes the history.
https://github.com/llvm/llvm-project/pull/77770
More information about the llvm-commits
mailing list