Browse Source

Move transforms to transforms namespace

pull/734/head
Daniel Grunwald 9 years ago
parent
commit
449bbe2043
  1. 1
      ICSharpCode.Decompiler/IL/ControlFlow/ConditionDetection.cs
  2. 1
      ICSharpCode.Decompiler/IL/ControlFlow/ControlFlowSimplification.cs
  3. 1
      ICSharpCode.Decompiler/IL/ControlFlow/DetectPinnedRegions.cs
  4. 1
      ICSharpCode.Decompiler/IL/ControlFlow/IntroduceExitPoints.cs
  5. 1
      ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs
  6. 1
      ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs
  7. 2
      ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs
  8. 2
      ICSharpCode.Decompiler/IL/Transforms/IILTransform.cs
  9. 4
      ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs
  10. 2
      ICSharpCode.Decompiler/IL/Transforms/LoopingTransform.cs

1
ICSharpCode.Decompiler/IL/ControlFlow/ConditionDetection.cs

@ -20,6 +20,7 @@ using System.Collections; @@ -20,6 +20,7 @@ using System.Collections;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.Decompiler.FlowAnalysis;
using ICSharpCode.Decompiler.IL.Transforms;
namespace ICSharpCode.Decompiler.IL.ControlFlow
{

1
ICSharpCode.Decompiler/IL/ControlFlow/ControlFlowSimplification.cs

@ -19,6 +19,7 @@ using System; @@ -19,6 +19,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.Decompiler.IL.Transforms;
namespace ICSharpCode.Decompiler.IL.ControlFlow
{

1
ICSharpCode.Decompiler/IL/ControlFlow/DetectPinnedRegions.cs

@ -20,6 +20,7 @@ using System; @@ -20,6 +20,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.Decompiler.IL.Transforms;
using ICSharpCode.NRefactory.TypeSystem;
namespace ICSharpCode.Decompiler.IL.ControlFlow

1
ICSharpCode.Decompiler/IL/ControlFlow/IntroduceExitPoints.cs

@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
using System;
using System.Diagnostics;
using ICSharpCode.Decompiler.IL.Transforms;
namespace ICSharpCode.Decompiler.IL.ControlFlow
{

1
ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs

@ -21,6 +21,7 @@ using System.Collections.Generic; @@ -21,6 +21,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.Decompiler.FlowAnalysis;
using ICSharpCode.Decompiler.IL.Transforms;
namespace ICSharpCode.Decompiler.IL.ControlFlow
{

1
ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
using System;
using System.Collections.Generic;
using System.Threading;
using ICSharpCode.Decompiler.IL.Transforms;
using ICSharpCode.NRefactory.TypeSystem;
using Mono.Cecil;
using ICSharpCode.Decompiler.Disassembler;

2
ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
using System;
using System.Linq;
namespace ICSharpCode.Decompiler.IL
namespace ICSharpCode.Decompiler.IL.Transforms
{
/// <summary>
/// Runs a very simple form of copy propagation.

2
ICSharpCode.Decompiler/IL/Transforms/IILTransform.cs

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
using System;
using System.Threading;
namespace ICSharpCode.Decompiler.IL
namespace ICSharpCode.Decompiler.IL.Transforms
{
public class ILTransformContext
{

4
ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs

@ -24,7 +24,7 @@ using ICSharpCode.NRefactory.TypeSystem; @@ -24,7 +24,7 @@ using ICSharpCode.NRefactory.TypeSystem;
using Mono.Cecil;
using ICSharpCode.Decompiler.IL;
namespace ICSharpCode.Decompiler.IL
namespace ICSharpCode.Decompiler.IL.Transforms
{
/// <summary>
/// Performs inlining transformations.
@ -254,9 +254,11 @@ namespace ICSharpCode.Decompiler.IL @@ -254,9 +254,11 @@ namespace ICSharpCode.Decompiler.IL
{
Debug.Assert(loadInst.IsDescendantOf(next));
// decide based on the source expression being inlined
if (inlinedExpression.OpCode == OpCode.DefaultValue)
return true;
// decide based on the target into which we are inlining
var parent = loadInst.Parent;
switch (next.OpCode) {
case OpCode.Return:

2
ICSharpCode.Decompiler/IL/Transforms/LoopingTransform.cs

@ -20,7 +20,7 @@ using System; @@ -20,7 +20,7 @@ using System;
using System.Linq;
using System.Collections.Generic;
namespace ICSharpCode.Decompiler.IL
namespace ICSharpCode.Decompiler.IL.Transforms
{
/// <summary>
/// Repeats the child transforms until the ILAst no longer changes.

Loading…
Cancel
Save