Create a zero-extension or bitcast cast instruction.
Declared in <llvm/IR/InstrTypes.h>
static
CastInst*
CreateZExtOrBitCast(
Value* S,
Type* Ty,
Twine const& Name = "",
InsertPosition InsertBefore = nullptr);
The newly created cast instruction.
| Name | Description |
|---|---|
| S | The value to cast (operand 0). |
| Ty | The destination type of the cast. |
| Name | Optional name for the instruction. |
| InsertBefore | Optional insertion position. |