llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-modules Author: None (YLChenZ) <details> <summary>Changes</summary> Closes #<!-- -->132696. before the patch like this: ``` ---------------------------- *** Reducing GlobalObjects... ---------------------------- *** Reducing GV Initializers... ---------------------------- *** Reducing GlobalVariables... ---------------------------- ``` after the patch like this: ``` ---------------------------- *** Reducing GlobalObjects (global-objects)... ---------------------------- *** Reducing GV Initializers (global-initializers)... ---------------------------- *** Reducing GlobalVariables (global-variables)... ---------------------------- ``` --- Patch is 69.52 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/132813.diff 81 Files Affected: - (modified) clang/lib/Frontend/ASTUnit.cpp (+4-5) - (modified) clang/lib/Lex/ModuleMap.cpp (+1-2) - (modified) clang/lib/Serialization/ASTReader.cpp (+4-2) - (modified) flang/lib/Evaluate/fold-logical.cpp (+1-1) - (modified) libcxx/test/std/utilities/utility/forward/forward_like.verify.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/DeltaManager.cpp (+72-83) - (added) llvm/tools/llvm-reduce/DeltaPass.h (+25) - (added) llvm/tools/llvm-reduce/DeltaPasses.def (+68) - (modified) llvm/tools/llvm-reduce/deltas/Delta.h (+1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp (+4-4) - (modified) llvm/tools/llvm-reduce/deltas/ReduceAliases.h (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceArguments.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceAttributes.h (+3-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp (+4-4) - (modified) llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.h (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceDistinctMetadata.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceDistinctMetadata.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.cpp (+4-4) - (modified) llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.h (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceFunctions.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalObjects.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalObjects.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalVarInitializers.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalVarInitializers.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceIRReferences.cpp (+6-8) - (modified) llvm/tools/llvm-reduce/deltas/ReduceIRReferences.h (+5-3) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructionFlags.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructionFlags.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructionFlagsMIR.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructionFlagsMIR.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructions.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.h (+2-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInvokes.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceInvokes.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceMemoryOperations.cpp (+6-6) - (modified) llvm/tools/llvm-reduce/deltas/ReduceMemoryOperations.h (+3-3) - (modified) llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp (+4-4) - (modified) llvm/tools/llvm-reduce/deltas/ReduceMetadata.h (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceModuleData.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceModuleData.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOpcodes.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.h (+3-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp (+6-6) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperands.h (+3-3) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceRegisterMasks.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceRegisterMasks.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceRegisterUses.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceRegisterUses.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/ReduceUsingSimplifyCFG.cpp (+6-6) - (modified) llvm/tools/llvm-reduce/deltas/ReduceUsingSimplifyCFG.h (+3-3) - (modified) llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.h (+3-1) - (modified) llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/RunIRPasses.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/SimplifyInstructions.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/SimplifyInstructions.h (+1-1) - (modified) llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp (+2-2) - (modified) llvm/tools/llvm-reduce/deltas/StripDebugInfo.h (+1-1) ``````````diff diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 0a5f1cfd1a264..4bc0496253f70 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -832,11 +832,10 @@ std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile( AST->ModCache = createCrossProcessModuleCache(); AST->HSOpts = HSOpts ? HSOpts : std::make_shared<HeaderSearchOptions>(); AST->HSOpts->ModuleFormat = std::string(PCHContainerRdr.getFormats().front()); - AST->HeaderInfo.reset(new HeaderSearch(AST->getHeaderSearchOpts(), - AST->getSourceManager(), - AST->getDiagnostics(), - AST->getLangOpts(), - /*Target=*/nullptr)); + AST->HeaderInfo.reset( + new HeaderSearch(AST->getHeaderSearchOpts(), AST->getSourceManager(), + AST->getDiagnostics(), AST->getLangOpts(), + /*Target=*/nullptr)); AST->PPOpts = std::make_shared<PreprocessorOptions>(); // Gather Info for preprocessor construction later on. diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index a1394fd3900b0..c9b5f767555cf 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -353,8 +353,7 @@ ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, const LangOptions &LangOpts, const TargetInfo *Target, HeaderSearch &HeaderInfo) : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target), - HeaderInfo(HeaderInfo) { -} + HeaderInfo(HeaderInfo) {} ModuleMap::~ModuleMap() = default; diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index 0cd2cedb48dd9..ce7b9d966d736 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -9613,9 +9613,11 @@ ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &M, unsigned ID) const { return I == GlobalSubmoduleMap.end() ? nullptr : I->second; } else { // It's a prefix (preamble, PCH, ...). Look it up by index. - int IndexFromEnd = static_cast<int>(ID >> 1); + int IndexFromEnd = static_cast<int>(ID >> 1); assert(IndexFromEnd && "got reference to unknown module file"); - return getModuleManager().pch_modules().end()[-static_cast<int>(IndexFromEnd)]; + return getModuleManager() + .pch_modules() + .end()[-static_cast<int>(IndexFromEnd)]; } } diff --git a/flang/lib/Evaluate/fold-logical.cpp b/flang/lib/Evaluate/fold-logical.cpp index 6950caf327419..731e79b9337da 100644 --- a/flang/lib/Evaluate/fold-logical.cpp +++ b/flang/lib/Evaluate/fold-logical.cpp @@ -880,7 +880,7 @@ Expr<Type<TypeCategory::Logical, KIND>> FoldIntrinsicFunction( if (args[0]) { if (const auto *cst{UnwrapExpr<Constant<SomeDerived>>(args[0])}) { if (auto constr{cst->GetScalarValue()}) { - if (StructureConstructorValues & values{constr->values()}; + if (StructureConstructorValues &values{constr->values()}; values.size() == 1) { const Expr<SomeType> &value{values.begin()->second.value()}; if (auto flag{ToInt64(value)}) { diff --git a/libcxx/test/std/utilities/utility/forward/forward_like.verify.cpp b/libcxx/test/std/utilities/utility/forward/forward_like.verify.cpp index 279f0e60a1c38..5f7a319ff38ee 100644 --- a/libcxx/test/std/utilities/utility/forward/forward_like.verify.cpp +++ b/libcxx/test/std/utilities/utility/forward/forward_like.verify.cpp @@ -39,8 +39,8 @@ void test() { (void)std::forward_like<vfp>(i); // expected-error {{no matching function for call to 'forward_like'}} (void)std::forward_like<cvfp>(i); // expected-error {{no matching function for call to 'forward_like'}} - using fpr = void()&; - using fprr = void()&&; + using fpr = void() &; + using fprr = void() &&; (void)std::forward_like<fpr>(i); // expected-error {{no matching function for call to 'forward_like'}} (void)std::forward_like<fprr>(i); // expected-error {{no matching function for call to 'forward_like'}} } diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp index 624b5306bc71b..dfa4aa6a534fd 100644 --- a/llvm/tools/llvm-reduce/DeltaManager.cpp +++ b/llvm/tools/llvm-reduce/DeltaManager.cpp @@ -53,6 +53,8 @@ #include "deltas/StripDebugInfo.h" #include "llvm/ADT/SmallSet.h" #include "llvm/Support/CommandLine.h" +#include "DeltaPass.h" +#include "llvm/ADT/ArrayRef.h" using namespace llvm; @@ -71,91 +73,77 @@ static cl::list<std::string> "default, run all delta passes."), cl::cat(LLVMReduceOptions), cl::CommaSeparated); -#define DELTA_PASSES \ - do { \ - DELTA_PASS("strip-debug-info", stripDebugInfoDeltaPass) \ - DELTA_PASS("functions", reduceFunctionsDeltaPass) \ - DELTA_PASS("function-bodies", reduceFunctionBodiesDeltaPass) \ - DELTA_PASS("special-globals", reduceSpecialGlobalsDeltaPass) \ - DELTA_PASS("aliases", reduceAliasesDeltaPass) \ - DELTA_PASS("ifuncs", reduceIFuncsDeltaPass) \ - DELTA_PASS("simplify-conditionals-true", reduceConditionalsTrueDeltaPass) \ - DELTA_PASS("simplify-conditionals-false", \ - reduceConditionalsFalseDeltaPass) \ - DELTA_PASS("invokes", reduceInvokesDeltaPass) \ - DELTA_PASS("unreachable-basic-blocks", \ - reduceUnreachableBasicBlocksDeltaPass) \ - DELTA_PASS("basic-blocks", reduceBasicBlocksDeltaPass) \ - DELTA_PASS("simplify-cfg", reduceUsingSimplifyCFGDeltaPass) \ - DELTA_PASS("function-data", reduceFunctionDataDeltaPass) \ - DELTA_PASS("global-values", reduceGlobalValuesDeltaPass) \ - DELTA_PASS("global-objects", reduceGlobalObjectsDeltaPass) \ - DELTA_PASS("global-initializers", reduceGlobalsInitializersDeltaPass) \ - DELTA_PASS("global-variables", reduceGlobalsDeltaPass) \ - DELTA_PASS("di-metadata", reduceDIMetadataDeltaPass) \ - DELTA_PASS("dbg-records", reduceDbgRecordDeltaPass) \ - DELTA_PASS("distinct-metadata", reduceDistinctMetadataDeltaPass) \ - DELTA_PASS("metadata", reduceMetadataDeltaPass) \ - DELTA_PASS("named-metadata", reduceNamedMetadataDeltaPass) \ - DELTA_PASS("arguments", reduceArgumentsDeltaPass) \ - DELTA_PASS("instructions", reduceInstructionsDeltaPass) \ - DELTA_PASS("simplify-instructions", simplifyInstructionsDeltaPass) \ - DELTA_PASS("ir-passes", runIRPassesDeltaPass) \ - DELTA_PASS("operands-zero", reduceOperandsZeroDeltaPass) \ - DELTA_PASS("operands-one", reduceOperandsOneDeltaPass) \ - DELTA_PASS("operands-nan", reduceOperandsNaNDeltaPass) \ - DELTA_PASS("operands-to-args", reduceOperandsToArgsDeltaPass) \ - DELTA_PASS("operands-skip", reduceOperandsSkipDeltaPass) \ - DELTA_PASS("operand-bundles", reduceOperandBundesDeltaPass) \ - DELTA_PASS("attributes", reduceAttributesDeltaPass) \ - DELTA_PASS("module-data", reduceModuleDataDeltaPass) \ - DELTA_PASS("opcodes", reduceOpcodesDeltaPass) \ - DELTA_PASS("volatile", reduceVolatileInstructionsDeltaPass) \ - DELTA_PASS("atomic-ordering", reduceAtomicOrderingDeltaPass) \ - DELTA_PASS("syncscopes", reduceAtomicSyncScopesDeltaPass) \ - DELTA_PASS("instruction-flags", reduceInstructionFlagsDeltaPass) \ - } while (false) - -#define DELTA_PASSES_MIR \ - do { \ - DELTA_PASS("instructions", reduceInstructionsMIRDeltaPass) \ - DELTA_PASS("ir-instruction-references", \ - reduceIRInstructionReferencesDeltaPass) \ - DELTA_PASS("ir-block-references", reduceIRBlockReferencesDeltaPass) \ - DELTA_PASS("ir-function-references", reduceIRFunctionReferencesDeltaPass) \ - DELTA_PASS("instruction-flags", reduceInstructionFlagsMIRDeltaPass) \ - DELTA_PASS("register-uses", reduceRegisterUsesMIRDeltaPass) \ - DELTA_PASS("register-defs", reduceRegisterDefsMIRDeltaPass) \ - DELTA_PASS("register-hints", reduceVirtualRegisterHintsDeltaPass) \ - DELTA_PASS("register-masks", reduceRegisterMasksMIRDeltaPass) \ - } while (false) +// Generate two separate Pass lists: IR_Passes and MIR_Passes +static const DeltaPass IR_Passes[] = { + #undef DELTA_PASS_IR + #undef DELTA_PASS_MIR + #define DELTA_PASS_IR(NAME, FUNC, DESC) {NAME, FUNC, DESC}, + #include "DeltaPasses.def" + #undef DELTA_PASS_IR +}; + +static const DeltaPass MIR_Passes[] = { + #undef DELTA_PASS_IR +#undef DELTA_PASS_MIR +#define DELTA_PASS_MIR(NAME, FUNC, DESC) {NAME, FUNC, DESC}, +#include "DeltaPasses.def" +#undef DELTA_PASS_MIR +}; + static void runAllDeltaPasses(TestRunner &Tester, const SmallStringSet &SkipPass) { -#define DELTA_PASS(NAME, FUNC) \ - if (!SkipPass.count(NAME)) { \ - FUNC(Tester); \ - } if (Tester.getProgram().isMIR()) { - DELTA_PASSES_MIR; + for(const DeltaPass &Pass : MIR_Passes) { + if (!SkipPass.count(Pass.Name)) { + SmallString<64> Message; + Message += Pass.Desc; + Message += " ("; + Message += Pass.Name; + Message += ")"; + Pass.Func(Tester,Message); + } + } } else { - DELTA_PASSES; + for(const DeltaPass &Pass : IR_Passes) { + if (!SkipPass.count(Pass.Name)) { + SmallString<64> Message; + Message += Pass.Desc; + Message += " ("; + Message += Pass.Name; + Message += ")"; + Pass.Func(Tester,Message); + } + } } -#undef DELTA_PASS } static void runDeltaPassName(TestRunner &Tester, StringRef PassName) { -#define DELTA_PASS(NAME, FUNC) \ - if (PassName == NAME) { \ - FUNC(Tester); \ - return; \ - } if (Tester.getProgram().isMIR()) { - DELTA_PASSES_MIR; + for(const DeltaPass &Pass : MIR_Passes) { + if (PassName == Pass.Name) { + SmallString<64> Message; + Message += Pass.Desc; + Message += " ("; + Message += Pass.Name; + Message += ")"; + Pass.Func(Tester,Message); + return; + } + } } else { - DELTA_PASSES; + for(const DeltaPass &Pass : IR_Passes) { + if (PassName == Pass.Name) { + SmallString<64> Message; + Message += Pass.Desc; + Message += " ("; + Message += Pass.Name; + Message += ")"; + Pass.Func(Tester,Message); + return; + } + } } -#undef DELTA_PASS // We should have errored on unrecognized passes before trying to run // anything. @@ -164,24 +152,25 @@ static void runDeltaPassName(TestRunner &Tester, StringRef PassName) { void llvm::printDeltaPasses(raw_ostream &OS) { OS << "Delta passes (pass to `--delta-passes=` as a comma separated list):\n"; -#define DELTA_PASS(NAME, FUNC) OS << " " << NAME << "\n"; OS << " IR:\n"; - DELTA_PASSES; + for (const DeltaPass &Pass : IR_Passes) { + OS << " " << Pass.Name << "\n"; + } OS << " MIR:\n"; - DELTA_PASSES_MIR; -#undef DELTA_PASS + for (const DeltaPass &Pass : MIR_Passes) { + OS << " " << Pass.Name << "\n"; + } } // Built a set of available delta passes. static void collectPassNames(const TestRunner &Tester, SmallStringSet &NameSet) { -#define DELTA_PASS(NAME, FUNC) NameSet.insert(NAME); - if (Tester.getProgram().isMIR()) { - DELTA_PASSES_MIR; - } else { - DELTA_PASSES; + for (const DeltaPass &Pass : MIR_Passes) { + NameSet.insert(Pass.Name); + } + for (const DeltaPass &Pass : IR_Passes) { + NameSet.insert(Pass.Name); } -#undef DELTA_PASS } /// Verify all requested or skipped passes are valid names, and return them in a diff --git a/llvm/tools/llvm-reduce/DeltaPass.h b/llvm/tools/llvm-reduce/DeltaPass.h new file mode 100644 index 0000000000000..ae8fd489e4308 --- /dev/null +++ b/llvm/tools/llvm-reduce/DeltaPass.h @@ -0,0 +1,25 @@ +//===--- DeltaPass.h - Delta Pass Structure --------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + + + +#ifndef LLVM_TOOLS_LLVM_REDUCE_DELTAPASS_H +#define LLVM_TOOLS_LLVM_REDUCE_DELTAPASS_H + +#include "TestRunner.h" + +namespace llvm { +struct DeltaPass { + StringRef Name; // e.g., "strip-debug-info" + void (*Func)(TestRunner &, StringRef); // function pointer, e.g.,stripDebugInfoDeltaPass + StringRef Desc; // e.g., "Stripping Debug Info" +}; +} // namespace llvm + + +#endif \ No newline at end of file diff --git a/llvm/tools/llvm-reduce/DeltaPasses.def b/llvm/tools/llvm-reduce/DeltaPasses.def new file mode 100644 index 0000000000000..5ef3f79604918 --- /dev/null +++ b/llvm/tools/llvm-reduce/DeltaPasses.def @@ -0,0 +1,68 @@ +//===--- DeltaPasses.def - Delta Pass Definitions --------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + + +#ifndef DELTA_PASS_IR +#define DELTA_PASS_IR(NAME, FUNC, DESC) +#endif +DELTA_PASS_IR("strip-debug-info", stripDebugInfoDeltaPass, "Stripping Debug Info") +DELTA_PASS_IR("functions", reduceFunctionsDeltaPass, "Reducing Functions") +DELTA_PASS_IR("function-bodies", reduceFunctionBodiesDeltaPass, "Reducing Function Bodies") +DELTA_PASS_IR("special-globals", reduceSpecialGlobalsDeltaPass, "Reducing Special Globals") +DELTA_PASS_IR("aliases", reduceAliasesDeltaPass, "Reducing Aliases") +DELTA_PASS_IR("ifuncs", reduceIFuncsDeltaPass, "Reducing Ifuncs") +DELTA_PASS_IR("simplify-conditionals-true", reduceConditionalsTrueDeltaPass,"Reducing conditional branches to true") +DELTA_PASS_IR("simplify-conditionals-false", + reduceConditionalsFalseDeltaPass,"Reducing conditional branches to false") +DELTA_PASS_IR("invokes", reduceInvokesDeltaPass, "Reducing Invokes") +DELTA_PASS_IR("unreachable-basic-blocks", + reduceUnreachableBasicBlocksDeltaPass, "Removing Unreachable Basic Blocks") +DELTA_PASS_IR("basic-blocks", reduceBasicBlocksDeltaPass, "Reducing Basic Blocks") +DELTA_PASS_IR("simplify-cfg", reduceUsingSimplifyCFGDeltaPass,"Reducing using SimplifyCFG") +DELTA_PASS_IR("function-data", reduceFunctionDataDeltaPass, "Reducing Function Data") +DELTA_PASS_IR("global-values", reduceGlobalValuesDeltaPass, "Reducing GlobalValues") +DELTA_PASS_IR("global-objects", reduceGlobalObjectsDeltaPass, "Reducing GlobalObjects") +DELTA_PASS_IR("global-initializers", reduceGlobalsInitializersDeltaPass, "Reducing GV Initializers") +DELTA_PASS_IR("global-variables", reduceGlobalsDeltaPass, "Reducing GlobalVariables") +DELTA_PASS_IR("di-metadata", reduceDIMetadataDeltaPass, "Reducing DIMetadata") +DELTA_PASS_IR("dbg-records", reduceDbgRecordDeltaPass, "Reducing DbgRecords") +DELTA_PASS_IR("distinct-metadata", reduceDistinctMetadataDeltaPass, "Reducing Distinct Metadata") +DELTA_PASS_IR("metadata", reduceMetadataDeltaPass,"Reducing Metadata") +DELTA_PASS_IR("named-metadata", reduceNamedMetadataDeltaPass,"Reducing Named Metadata") +DELTA_PASS_IR("arguments", reduceArgumentsDeltaPass, "Reducing Arguments") +DELTA_PASS_IR("instructions", reduceInstructionsDeltaPass, "Reducing Instructions") +DELTA_PASS_IR("simplify-instructions", simplifyInstructionsDeltaPass,"Simplifying Instructions") +DELTA_PASS_IR("ir-passes", runIRPassesDeltaPass,"Running passes") +DELTA_PASS_IR("operands-zero", reduceOperandsZeroDeltaPass,"Reducing Operands to zero") +DELTA_PASS_IR("operands-one", reduceOperandsOneDeltaPass,"Reducing Operands to one") +DELTA_PASS_IR("operands-nan", reduceOperandsNaNDeltaPass,"Reducing Operands to NaN") +DELTA_PASS_IR("operands-to-args", reduceOperandsToArgsDeltaPass,"Converting operands to function arguments") +DELTA_PASS_IR("operands-skip", reduceOperandsSkipDeltaPass,"Reducing operands by skipping over instructions") +DELTA_PASS_IR("operand-bundles", reduceOperandBundesDeltaPass,"Reducing Operand Bundles") +DELTA_PASS_IR("attributes", reduceAttributesDeltaPass, "Reducing Attributes") +DELTA_PASS_IR("module-data", reduceModuleDataDeltaPass,"Reducing Module Data") +DELTA_PASS_IR("opcodes", reduceOpcodesDeltaPass,"Reducing Opcodes") +DELTA_PASS_IR("volatile", reduceVolatileInstructionsDeltaPass,"Reducing Volatile Instructions") +DELTA_PASS_IR("atomic-ordering", reduceAtomicOrderingDeltaPass,"Reducing Atomic Ordering") +DELTA_PASS_IR("syncscopes", reduceAtomicSyncScopesDeltaPass,"Reducing Atomic Sync Scopes") +DELTA_PASS_IR("instruction-flags", reduceInstructionFlagsDeltaPass, "Reducing Instruction Flags") + + +#ifndef DELTA_PASS_MIR +#define DELTA_PASS_MIR(NAME, FUNC, DESC) +#endif +DELTA_PASS_MIR("instructions", reduceInstructionsMIRDeltaPass, "Reducing Instructions") +DELTA_PASS_MIR("ir-instruction-references", + reduceIRInstructionReferencesDeltaPass,"Reducing IR references from instructions") +DELTA_PASS_MIR("ir-block-references", reduceIRBlockReferencesDeltaPass,"Reducing IR references from blocks") +DELTA_PASS_MIR("ir-function-references", reduceIRFunctionReferencesDeltaPass,"Reducing IR references from functions") +DELTA_PASS_MIR("instruction-flags", reduceInstructionFlagsMIRDeltaPass, "Reducing Instruction Flags") +DELTA_PASS_MIR("register-uses", reduceRegisterUsesMIRDeltaPass,"Reducing register uses") +DELTA_PASS_MIR("register-defs", reduceRegisterDefsMIRDeltaPass,"Reducing register defs") +DELTA_PASS_MIR("register-hints", reduceVirtualRegisterHintsDeltaPass,"Reducing virtual register hints from functions") +DELTA_PASS_MIR("register-masks", reduceRegisterMasksMIRDeltaPass,"Reducing register m... [truncated] `````````` </details> https://github.com/llvm/llvm-project/pull/132813 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits