| 1 | //===--- DeltaPasses.def - Delta Pass Definitions --------------*- C++ -*-===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | |
| 10 | #ifndef DELTA_PASS_IR |
| 11 | #define DELTA_PASS_IR(NAME, FUNC, DESC) |
| 12 | #endif |
| 13 | DELTA_PASS_IR("strip-debug-info" , stripDebugInfoDeltaPass, "Stripping Debug Info" ) |
| 14 | DELTA_PASS_IR("functions" , reduceFunctionsDeltaPass, "Reducing Functions" ) |
| 15 | DELTA_PASS_IR("function-bodies" , reduceFunctionBodiesDeltaPass, "Reducing Function Bodies" ) |
| 16 | DELTA_PASS_IR("special-globals" , reduceSpecialGlobalsDeltaPass, "Reducing Special Globals" ) |
| 17 | DELTA_PASS_IR("aliases" , reduceAliasesDeltaPass, "Reducing Aliases" ) |
| 18 | DELTA_PASS_IR("ifuncs" , reduceIFuncsDeltaPass, "Reducing Ifuncs" ) |
| 19 | DELTA_PASS_IR("simplify-conditionals-true" , reduceConditionalsTrueDeltaPass, "Reducing conditional branches to true" ) |
| 20 | DELTA_PASS_IR("simplify-conditionals-false" , |
| 21 | reduceConditionalsFalseDeltaPass, "Reducing conditional branches to false" ) |
| 22 | DELTA_PASS_IR("invokes" , reduceInvokesDeltaPass, "Reducing Invokes" ) |
| 23 | DELTA_PASS_IR("unreachable-basic-blocks" , |
| 24 | reduceUnreachableBasicBlocksDeltaPass, "Removing Unreachable Basic Blocks" ) |
| 25 | DELTA_PASS_IR("basic-blocks" , reduceBasicBlocksDeltaPass, "Reducing Basic Blocks" ) |
| 26 | DELTA_PASS_IR("simplify-cfg" , reduceUsingSimplifyCFGDeltaPass, "Reducing using SimplifyCFG" ) |
| 27 | DELTA_PASS_IR("function-data" , reduceFunctionDataDeltaPass, "Reducing Function Data" ) |
| 28 | DELTA_PASS_IR("global-values" , reduceGlobalValuesDeltaPass, "Reducing GlobalValues" ) |
| 29 | DELTA_PASS_IR("global-objects" , reduceGlobalObjectsDeltaPass, "Reducing GlobalObjects" ) |
| 30 | DELTA_PASS_IR("global-initializers" , reduceGlobalsInitializersDeltaPass, "Reducing GV Initializers" ) |
| 31 | DELTA_PASS_IR("global-variables" , reduceGlobalsDeltaPass, "Reducing GlobalVariables" ) |
| 32 | DELTA_PASS_IR("di-metadata" , reduceDIMetadataDeltaPass, "Reducing DIMetadata" ) |
| 33 | DELTA_PASS_IR("dbg-records" , reduceDbgRecordDeltaPass, "Reducing DbgRecords" ) |
| 34 | DELTA_PASS_IR("distinct-metadata" , reduceDistinctMetadataDeltaPass, "Reducing Distinct Metadata" ) |
| 35 | DELTA_PASS_IR("metadata" , reduceMetadataDeltaPass,"Reducing Metadata" ) |
| 36 | DELTA_PASS_IR("named-metadata" , reduceNamedMetadataDeltaPass, "Reducing Named Metadata" ) |
| 37 | DELTA_PASS_IR("arguments" , reduceArgumentsDeltaPass, "Reducing Arguments" ) |
| 38 | DELTA_PASS_IR("instructions" , reduceInstructionsDeltaPass, "Reducing Instructions" ) |
| 39 | DELTA_PASS_IR("simplify-instructions" , simplifyInstructionsDeltaPass, "Simplifying Instructions" ) |
| 40 | DELTA_PASS_IR("ir-passes" , runIRPassesDeltaPass, "Running passes" ) |
| 41 | DELTA_PASS_IR("operands-zero" , reduceOperandsZeroDeltaPass, "Reducing Operands to zero" ) |
| 42 | DELTA_PASS_IR("operands-one" , reduceOperandsOneDeltaPass, "Reducing Operands to one" ) |
| 43 | DELTA_PASS_IR("operands-nan" , reduceOperandsNaNDeltaPass, "Reducing Operands to NaN" ) |
| 44 | DELTA_PASS_IR("operands-poison" , reduceOperandsPoisonDeltaPass, "Reducing Operands to poison" ) |
| 45 | DELTA_PASS_IR("operands-to-args" , reduceOperandsToArgsDeltaPass, "Converting operands to function arguments" ) |
| 46 | DELTA_PASS_IR("operands-skip" , reduceOperandsSkipDeltaPass, "Reducing operands by skipping over instructions" ) |
| 47 | DELTA_PASS_IR("operand-bundles" , reduceOperandBundesDeltaPass, "Reducing Operand Bundles" ) |
| 48 | DELTA_PASS_IR("attributes" , reduceAttributesDeltaPass, "Reducing Attributes" ) |
| 49 | DELTA_PASS_IR("target-features-attr" , reduceTargetFeaturesAttrDeltaPass, "Reducing target-features" ) |
| 50 | DELTA_PASS_IR("module-data" , reduceModuleDataDeltaPass, "Reducing Module Data" ) |
| 51 | DELTA_PASS_IR("opcodes" , reduceOpcodesDeltaPass, "Reducing Opcodes" ) |
| 52 | |
| 53 | DELTA_PASS_IR("arguments-to-return" , reduceArgumentsToReturnDeltaPass, |
| 54 | "Converting arguments to function return value" ) |
| 55 | DELTA_PASS_IR("instructions-to-return" , reduceInstructionsToReturnDeltaPass, |
| 56 | "Early return of instructions" ) |
| 57 | DELTA_PASS_IR("volatile" , reduceVolatileInstructionsDeltaPass, "Reducing Volatile Instructions" ) |
| 58 | DELTA_PASS_IR("atomic-ordering" , reduceAtomicOrderingDeltaPass, "Reducing Atomic Ordering" ) |
| 59 | DELTA_PASS_IR("syncscopes" , reduceAtomicSyncScopesDeltaPass, "Reducing Atomic Sync Scopes" ) |
| 60 | DELTA_PASS_IR("instruction-flags" , reduceInstructionFlagsDeltaPass, "Reducing Instruction Flags" ) |
| 61 | |
| 62 | |
| 63 | #ifndef DELTA_PASS_MIR |
| 64 | #define DELTA_PASS_MIR(NAME, FUNC, DESC) |
| 65 | #endif |
| 66 | DELTA_PASS_MIR("instructions" , reduceInstructionsMIRDeltaPass, "Reducing Instructions" ) |
| 67 | DELTA_PASS_MIR("ir-instruction-references" , |
| 68 | reduceIRInstructionReferencesDeltaPass, "Reducing IR references from instructions" ) |
| 69 | DELTA_PASS_MIR("ir-block-references" , reduceIRBlockReferencesDeltaPass, "Reducing IR references from blocks" ) |
| 70 | DELTA_PASS_MIR("ir-function-references" , reduceIRFunctionReferencesDeltaPass, "Reducing IR references from functions" ) |
| 71 | DELTA_PASS_MIR("instruction-flags" , reduceInstructionFlagsMIRDeltaPass, "Reducing Instruction Flags" ) |
| 72 | DELTA_PASS_MIR("register-uses" , reduceRegisterUsesMIRDeltaPass, "Reducing register uses" ) |
| 73 | DELTA_PASS_MIR("register-defs" , reduceRegisterDefsMIRDeltaPass, "Reducing register defs" ) |
| 74 | DELTA_PASS_MIR("register-hints" , reduceVirtualRegisterHintsDeltaPass, "Reducing virtual register hints from functions" ) |
| 75 | DELTA_PASS_MIR("register-masks" , reduceRegisterMasksMIRDeltaPass, "Reducing register masks" ) |
| 76 | |