FlowControl.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // FlowControl.cs
  2. //
  3. // (C) 2001 Ximian, Inc. http://www.ximian.com
  4. //
  5. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining
  8. // a copy of this software and associated documentation files (the
  9. // "Software"), to deal in the Software without restriction, including
  10. // without limitation the rights to use, copy, modify, merge, publish,
  11. // distribute, sublicense, and/or sell copies of the Software, and to
  12. // permit persons to whom the Software is furnished to do so, subject to
  13. // the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be
  16. // included in all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  22. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  23. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  24. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. //
  26. using System.Runtime.InteropServices;
  27. namespace System.Reflection.Emit {
  28. /// <summary>
  29. /// Describes how an instruction alters the flow of control.
  30. /// </summary>
  31. [ComVisible (true)]
  32. [Serializable]
  33. public enum FlowControl {
  34. /// <summary>
  35. /// Branch instruction (ex: br, leave).
  36. /// </summary>
  37. Branch = 0,
  38. /// <summary>
  39. /// Break instruction (ex: break).
  40. /// </summary>
  41. Break = 1,
  42. /// <summary>
  43. /// Call instruction (ex: jmp, call, callvirt).
  44. /// </summary>
  45. Call = 2,
  46. /// <summary>
  47. /// Conditional branch instruction (ex: brtrue, brfalse).
  48. /// </summary>
  49. Cond_Branch = 3,
  50. /// <summary>
  51. /// Changes the behaviour of or provides additional
  52. /// about a subsequent instruction.
  53. /// (ex: prefixes such as volatile, unaligned).
  54. /// </summary>
  55. Meta = 4,
  56. /// <summary>
  57. /// Transition to the next instruction.
  58. /// </summary>
  59. Next = 5,
  60. /// <summary>
  61. /// Annotation for ann.phi instruction.
  62. /// </summary>
  63. [Obsolete ("This API has been deprecated.")]
  64. Phi = 6,
  65. /// <summary>
  66. /// Return instruction.
  67. /// </summary>
  68. Return = 7,
  69. /// <summary>
  70. /// Throw instruction.
  71. /// </summary>
  72. Throw = 8
  73. }
  74. }