Create a binary instruction with the given opcode and operands.
Synopsis
Declared in <llvm/IR/InstrTypes.h>
static
BinaryOperator*
Create(
BinaryOps Op,
Value* S1,
Value* S2,
Twine const& Name = Twine(),
InsertPosition InsertBefore = nullptr);
Description
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.
Return Value
The newly created binary operator.
Parameters
Name |
Description |
Op |
The binary opcode. |
S1 |
The first operand value. |
S2 |
The second operand value. |
Name |
Optional name for the new instruction. |
InsertBefore |
Optional insertion point for the new instruction. |
Created with MrDocs