Create a binary instruction and copy IR flags from CopyO.
Declared in <llvm/IR/InstrTypes.h>
static
BinaryOperator*
CreateWithCopiedFlags(
BinaryOps Opc,
Value* V1,
Value* V2,
Value* CopyO,
Twine const& Name = "",
InsertPosition InsertBefore = nullptr);
Copies overflow, fast-math, and other IR flags from the source instruction.
The newly created binary operator.
| Name | Description |
|---|---|
| Opc | The binary opcode. |
| V1 | The first operand value. |
| V2 | The second operand value. |
| CopyO | Instruction whose IR flags are copied. |
| Name | Optional name for the new instruction. |
| InsertBefore | Optional insertion point for the new instruction. |