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;
using System.Diagnostics; using System.Diagnostics;
using System.Linq; using System.Linq;
using ICSharpCode.Decompiler.FlowAnalysis; using ICSharpCode.Decompiler.FlowAnalysis;
using ICSharpCode.Decompiler.IL.Transforms;
namespace ICSharpCode.Decompiler.IL.ControlFlow namespace ICSharpCode.Decompiler.IL.ControlFlow
{ {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save