-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[llvm-reduce]: print short form, actionable names in the log #133561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1284254
[llvm-reduce]: print short form, actionable names in the log
YLChenZ 97c953e
[llvm-reduce] fix compilation errors
YLChenZ 6f20fa8
[llvm-reduce] fixclang-format error
YLChenZ fcc55bb
[llvm-reduce] fix errors
YLChenZ 3ee653f
[llvm-reduce] fix clang-format error
YLChenZ cefca9f
[llvm-reduce] fix clang-format error
YLChenZ df50c76
Update llvm/tools/llvm-reduce/deltas/Delta.h
arsenm 45bfb34
Update llvm/tools/llvm-reduce/deltas/Delta.cpp
arsenm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| //===--- 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 "ReducerWorkItem.h" | ||
| #include "deltas/Delta.h" | ||
| #include "llvm/ADT/StringRef.h" | ||
|
|
||
| namespace llvm { | ||
| struct DeltaPass { | ||
| StringRef Name; // e.g., "strip-debug-info" | ||
| void (*Func)(Oracle &, ReducerWorkItem &); // e.g., stripDebugInfoDeltaPass | ||
| StringRef Desc; // e.g., "Stripping Debug Info" | ||
| }; | ||
| } // namespace llvm | ||
|
|
||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 masks") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.