Class InstructionExtensions
- Namespace
- Ubiquity.NET.Llvm.Instructions
- Assembly
- Ubiquity.NET.Llvm.dll
Provides extension methods to Instruction that cannot be achieved as members of the class
public static class InstructionExtensions
- Inheritance
-
InstructionExtensions
- Inherited Members
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
- SetAlignment<T>(T, uint)
Fluent style extension method to set the Alignment for an instruction
- SetIsVolatile<T>(T, bool)
Fluent style extension method to set the Volatile property of a Load or Store instruction