Create a unary instruction with the given opcode and operand.
Declared in <llvm/IR/InstrTypes.h>
static
UnaryOperator*
Create(
UnaryOps Op,
Value* S,
Twine const& Name = Twine(),
InsertPosition InsertBefore = nullptr);
Optionally (if InstBefore is specified) insert the instruction into a BasicBlock right before the specified instruction. The specified Instruction is allowed to be a dereferenced end iterator.
The newly created unary operator.
| Name | Description |
|---|---|
| Op | The unary opcode. |
| S | The operand value. |
| Name | Optional name for the new instruction. |
| InsertBefore | Optional insertion point for the new instruction. |