Class InstructionExtensions
Provides extension methods to Instruction that cannot be achieved as members of the class
Inheritance
InstructionExtensions
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Ubiquity.NET.Llvm.Instructions
Assembly: Ubiquity.NET.Llvm.dll
Syntax
public static class InstructionExtensions
Remarks
Using generic static extension methods allows for fluent coding while retaining the type of the "this" parameter. If these were members of the Instruction class then the only return type could be Instruction thus losing the original type and requiring a cast to get back to it, thereby defeating the purpose of the fluent style.
Methods
Alignment<T>(T, UInt32) | Fluent style extension method to set the Alignment for an instruction |
IsVolatile<T>(T, Boolean) | Fluent style extension method to set the Volatile property of a Load or Store instruction |