[llvm] [NewPM][CodeGen] add TargetPassConfig like API (PR #70906)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 18 23:40:23 PST 2023
================
@@ -602,17 +712,47 @@ CodeGenPassBuilder<Derived>::getPassNameFromLegacyName(StringRef Name) const {
return Ret;
}
+template <typename DerivedT>
+bool llvm::CodeGenPassBuilder<DerivedT>::parseMIRPass(
+ MachineFunctionPassManager &MFPM, StringRef Name) const {
+#define ADD_PASS(NAME, PASS_NAME) \
+ if (Name == NAME) { \
+ { \
----------------
aeubanks wrote:
extra parens?
https://github.com/llvm/llvm-project/pull/70906
More information about the llvm-commits
mailing list